[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/19724] New: linker script support of (hidden) "address@hidden" =
From: |
glebfm at altlinux dot org |
Subject: |
[Bug ld/19724] New: linker script support of (hidden) "address@hidden" = foo; is broken |
Date: |
Thu, 25 Feb 2016 02:30:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19724
Bug ID: 19724
Summary: linker script support of (hidden) "address@hidden" = foo; is
broken
Product: binutils
Version: 2.27 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: glebfm at altlinux dot org
Target Milestone: ---
$ echo 'BAR {global:FOO; local:*;};' > exports
$ echo '"address@hidden" = foo;' > libfoo.lds
$ echo 'int foo() {return 0;}' > libfoo.c
$ gcc -s -shared -fPIC libfoo.c -Wl,--version-script,exports -Wl,libfoo.lds -o
libfoo.so
$ readelf -Ws libfoo.so | grep FOO
8: 00000000000005c0 0 FUNC GLOBAL DEFAULT 11 FOO@@BAR
$ echo 'int main() {return FOO();}' > foo.c
$ gcc -L$PWD foo.c -o foo -lfoo -Wno-implicit-function-declaration
$ LD_LIBRARY_PATH=$PWD ./foo
./foo: relocation error: ./foo: symbol FOO, version BAR not defined in file
libfoo.so with link time reference
I bisected it to:
6e33951edcbed1fd803beabcde2af3b252b92164 is the first bad commit
commit 6e33951edcbed1fd803beabcde2af3b252b92164
Author: H.J. Lu <address@hidden>
Date: Fri Aug 7 05:04:21 2015 -0700
Properly merge hidden versioned symbol
...
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/19724] New: linker script support of (hidden) "address@hidden" = foo; is broken,
glebfm at altlinux dot org <=