bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/25295] Gas should have way to define symbol version without exp


From: hjl.tools at gmail dot com
Subject: [Bug gas/25295] Gas should have way to define symbol version without exporting its target
Date: Mon, 06 Apr 2020 22:10:25 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12439|0                           |1
        is obsolete|                            |
           Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com

--- Comment #14 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 12440
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12440&action=edit
The updated patch

Also support

[hjl@gnu-cfl-2 pr25295]$ cat a.s
        .global foo
foo:
        ret
        .symver foo, bar@V1
        .symver foo, baz@V2
[hjl@gnu-cfl-2 pr25295]$ make a.o
./as   -o a.o a.s
[hjl@gnu-cfl-2 pr25295]$ readelf -sW a.o

Symbol table '.symtab' contains 7 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     4: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 foo
     5: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 bar@V1
     6: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 baz@V2
[hjl@gnu-cfl-2 pr25295]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]