https://sourceware.org/bugzilla/show_bug.cgi?id=23161
Bug ID: 23161 Summary: __bss_start, _end and _edata aren't marked as hidden Product: binutils Version: 2.31 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: linux [hjl@gnu-4 tmp]$ cat x.c void foo () { } [hjl@gnu-4 tmp]$ gcc -shared -fpic x.c [hjl@gnu-4 tmp]$ readelf --dyn-syms a.out Symbol table '.dynsym' contains 11 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab 2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 4: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (2) 5: 0000000000004018 0 NOTYPE GLOBAL DEFAULT 20 _edata 6: 00000000000010f9 2 FUNC GLOBAL DEFAULT 11 foo 7: 0000000000004020 0 NOTYPE GLOBAL DEFAULT 21 _end 8: 0000000000004018 0 NOTYPE GLOBAL DEFAULT 21 __bss_start 9: 0000000000001000 0 FUNC GLOBAL DEFAULT 8 _init 10: 00000000000010fc 0 FUNC GLOBAL DEFAULT 12 _fini [hjl@gnu-4 tmp]$ __bss_start, _end and _edata shouldn't be in .dynsym. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils