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 23:45:36 +0000

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12440|0                           |1
        is obsolete|                            |

--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 12441
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12441&action=edit
Another update

[hjl@gnu-cfl-2 pr25295]$ cat f.s
        .text
        .globl  foo
        .type   foo, %function
foo:
        ret
        .symver foo, foo@VERS_1, fake
[hjl@gnu-cfl-2 pr25295]$ make f.o
./as   -o f.o f.s
[hjl@gnu-cfl-2 pr25295]$ readelf -sW f.o

Symbol table '.symtab' contains 5 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 FUNC    GLOBAL DEFAULT    1 foo@VERS_1
[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]