https://sourceware.org/bugzilla/show_bug.cgi?id=28157
Bug ID: 28157
Summary: gas: .symver *, *@*, remove cannot be used in
relocation
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
PR 25295 added the new syntax `, remove` to `.symver`.
However, the new syntax cannot be used in relocations. This makes it difficult
to use:
% cat ctype_info.s
.symver __ctype_b,__ctype_b@GLIBC_2.2.5, remove
# These directives work
.data
.globl __ctype_b
.type __ctype_b, @object
.size __ctype_b, 8
__ctype_b:
# Error: redefined symbol cannot be used on reloc
.quad __ctype_b
% as ctype_info.s
ctype_info.s: Assembler messages:
ctype_info.s:11: Error: redefined symbol cannot be used on reloc
Personally I think `.symver a, b@ver, remove` should behave like "rename a to
b@ver". All relocations should be relative the versioned b@ver instead of a.
--
You are receiving this mail because:
You are on the CC list for the bug.