h...@gnu-6 hidden-5]$ cat foo.c void __attribute__ ((visibility ("hidden"))) hidden () { }
void (*foo) () = hidden; [...@gnu-6 hidden-5]$ cat libfoo.map { global: *; local: hidden; }; [...@gnu-6 hidden-5]$ make gcc -B./ -O -g -fPIC -c foo.c ./ld -shared -o libfoo.so --version-script libfoo.map foo.o readelf -s libfoo.so | grep hidden 18: 0000000000000218 2 FUNC LOCAL HIDDEN 5 hidden There is no need to generate HIDDEN visibility for local symbols -- Summary: Linker generates hidden local symbols Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10630 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils