https://sourceware.org/bugzilla/show_bug.cgi?id=23840

            Bug ID: 23840
           Summary: .symver fails with multiple versions [...] for symbol
                    `...'
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: nsz at gcc dot gnu.org
  Target Milestone: ---

.global foo
foo:
  ret
.symver foo, bar@V1
.symver foo, baz@V2

fails with

c.s: Assembler messages:
c.s:5: Error: multiple versions [`baz@V2'|`bar@V1'] for symbol `foo'

i see no reason to disallow multiple symbol versions
to point to the same location.

currently this can be worked around by using another
symbol, but such hack should not be needed (only the
location, binding and visibility should matter, the
symbol name should not, so ideally symver should even
work with an address expression that's not a symbol)

.global foo
.global foo_hack
foo:
foo_hack:
  ret
.symver foo, bar@V1
.symver foo_hack, baz@V2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to