https://sourceware.org/bugzilla/show_bug.cgi?id=34268
Bug ID: 34268
Summary: [RISC-V] GNU ld.bfd RISC-V `global:*` prevents later
`local:` from localizing a non-default `.symver` alias
Product: binutils
Version: 2.45
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: l784896635 at gmail dot com
Target Milestone: ---
Created attachment 16777
--> https://sourceware.org/bugzilla/attachment.cgi?id=16777&action=edit
Reduced testcase
I reduced this to the attached RISC-V testcase and can reproduce it 3/3 times.
Observed: GNU ld.bfd 2.45 links successfully but, when the version script
begins with `global: *;`, a later `local:` rule fails to localize non-default
alias `foo3@v1`.
Expected: Link valid RISC-V shared objects that define only non-default
versioned alias `foo3@v1` via `.symver foo3_impl, foo3@v1, remove` plus
`_start`, while a version script starts with `global: *;` and then attempts to
localize that alias with a later `local: foo3;` or `local: foo*;` clause.
--
You are receiving this mail because:
You are on the CC list for the bug.