bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/13195] -ffunction-sections -Wl,--gc-sections failure with symbol


From: hjl.tools at gmail dot com
Subject: [Bug ld/13195] -ffunction-sections -Wl,--gc-sections failure with symbol versioning
Date: Sat, 17 Sep 2011 20:57:58 +0000

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:

address@hidden 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
address@hidden pr13195-ver]$ cat x.t
VERS_2.0 {
global:
  foo;
local:
  *;
};
address@hidden 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
address@hidden 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.



reply via email to

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