https://sourceware.org/bugzilla/show_bug.cgi?id=19547
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
A testcase:
[hjl@gnu-6 pr19547]$ cat bar.c
static char grub_module_license[]__attribute__ ((used)) ="foobar";
[hjl@gnu-6 pr19547]$ make
gcc -fno-asynchronous-unwind-tables -g -O -c -o bar.o bar.c
./objcopy --strip-unneeded bar.o x.o
readelf -s -r x.o
There are no relocations in this file.
Symbol table '.symtab' contains 6 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
2: 0000000000000000 0 SECTION LOCAL DEFAULT 2
3: 0000000000000000 0 SECTION LOCAL DEFAULT 3
4: 0000000000000000 0 SECTION LOCAL DEFAULT 4
5: 0000000000000000 0 SECTION LOCAL DEFAULT 5
[hjl@gnu-6 pr19547]$
The .symtab section isn't needed since there are no relocations.
--
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