http://sourceware.org/bugzilla/show_bug.cgi?id=13195
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-ffunction-sections |-ffunction-sections
|-Wl,--gc-sections failure |-Wl,--gc-sections failure
|with C++ code |with symbol versioning
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-09-17 20:57:58
UTC ---
Another bug:
[hjl@gnu-6 pr13195-ver]$ cat x.s
.section .text.new_foo,"ax",%progbits
.globl new_foo
.type new_foo, %function
new_foo:
.byte 0
.symver new_foo,foo@@VERS_2.0
[hjl@gnu-6 pr13195-ver]$ cat x.t
VERS_2.0 {
global:
foo;
local:
*;
};
[hjl@gnu-6 pr13195-ver]$ make
as -o x.o x.s
./ld -shared --gc-sections -version-script x.t -o x.so x.o
readelf -s -D x.so
Symbol table for image:
Num Buc: Value Size Type Bind Vis Ndx Name
2 0: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS VERS_2.0
[hjl@gnu-6 pr13195-ver]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils