bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/19547] strip --strip-unneeded adds back section symbols


From: arvidjaar at gmail dot com
Subject: [Bug binutils/19547] strip --strip-unneeded adds back section symbols
Date: Mon, 01 Feb 2016 17:35:45 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19547

Andrei Borzenkov <arvidjaar at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #5 from Andrei Borzenkov <arvidjaar at gmail dot com> ---
Attached is all_video.module which is postprocessed for final run-time object.
Post processing is done using

address@hidden:/tmp$ objcopy -R .modename -R .moddeps all_video.module
all_video.mod.tmp
address@hidden:/tmp$ printf "all_video\0" > modname
address@hidden:/tmp$ printf
"efi_gop\0efi_uga\0video_bochs\0video_cirrus\0" > moddeps
address@hidden:/tmp$ objcopy --add-section .modname=modname
--add-section .moddeps=moddeps all_video.mod.tmp
address@hidden:/tmp$ strip --strip-unneeded -K grub_mod_init -K
grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note.gnu.gold-version -R
.note.GNU-stack -R .note -R .comment -R .ARM.exidx all_video.mod.tmp

One version is produced using binutils 2.17, another - 2.24.

address@hidden:/tmp$ LC_ALL=C objdump -t all_video.mod.2.17 

all_video.mod.2.17:     file format elf32-i386

SYMBOL TABLE:
no symbols


address@hidden:/tmp$ LC_ALL=C objdump -t all_video.mod.2.24

all_video.mod.2.24:     file format elf32-i386

SYMBOL TABLE:
00000000 l    d  .text  00000000 .text
00000000 l    d  .data  00000000 .data
00000000 l    d  .module_license        00000000 .module_license
00000000 l    d  .bss   00000000 .bss
00000000 l    d  .moddeps       00000000 .moddeps
00000000 l    d  .modname       00000000 .modname

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]