[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 18:37:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25295
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 12439
--> https://sourceware.org/bugzilla/attachment.cgi?id=12439&action=edit
A patch to extend .symver directive
[hjl@gnu-cfl-2 pr25295]$ cat x.s
.text
.globl foo
.type foo, %function
foo:
ret
.symver foo, foo@VERS_1, hidden
[hjl@gnu-cfl-2 pr25295]$ make x.o
./as -o x.o x.s
[hjl@gnu-cfl-2 pr25295]$ readelf -sW x.o
Symbol table '.symtab' contains 6 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 HIDDEN 1 foo
5: 0000000000000000 0 FUNC GLOBAL DEFAULT 1 foo@VERS_1
[hjl@gnu-cfl-2 pr25295]$ cat y.s
.text
.globl foo
.type foo, %function
foo:
ret
.symver foo, foo@VERS_1, local
[hjl@gnu-cfl-2 pr25295]$ make y.o
./as -o y.o y.s
[hjl@gnu-cfl-2 pr25295]$ readelf -sW y.o
Symbol table '.symtab' contains 6 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 LOCAL DEFAULT 1 foo
5: 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.
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, marxin.liska at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hubicka at gcc dot gnu.org, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, address@hidden, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hubicka at ucw dot cz, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, marxin.liska at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, address@hidden, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target,
hjl.tools at gmail dot com <=
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, i at maskray dot me, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, i at maskray dot me, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, i at maskray dot me, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06
- [Bug gas/25295] Gas should have way to define symbol version without exporting its target, hjl.tools at gmail dot com, 2020/04/06