|
From: | hjl.tools at gmail dot com |
Subject: | [Bug binutils/19547] strip --strip-unneeded adds back section symbols |
Date: | Mon, 01 Feb 2016 18:39:07 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19547 --- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> --- A testcase: address@hidden pr19547]$ cat bar.c static char grub_module_license[]__attribute__ ((used)) ="foobar"; address@hidden 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 address@hidden 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.
[Prev in Thread] | Current Thread | [Next in Thread] |