This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strip destroys executable


Hi,

on this ELF32 i386 executable:
ftp://quatramaran.ens.fr/pub/quentin/test

strip (BFD 2.17) causes these warnings:

>BFD: test2: section .dynstr lma 0x804a62c overlaps previous sections
>BFD: test2: section .interp lma 0x8048114 overlaps previous sections
>BFD: test2: section .note.ABI-tag lma 0x8048128 overlaps previous sections
>BFD: test2: section .hash lma 0x8048148 overlaps previous sections
>BFD: test2: section .dynsym lma 0x804816c overlaps previous sections
>BFD: test2: section .olddynstr lma 0x80481ac overlaps previous sections
>BFD: test2: section .gnu.version lma 0x80481f2 overlaps previous sections
>BFD: test2: section .gnu.version_r lma 0x80481fc overlaps previous sections
>BFD: test2: section .rel.dyn lma 0x804821c overlaps previous sections
>BFD: test2: section .rel.plt lma 0x8048224 overlaps previous sections
>BFD: test2: section .init lma 0x8048234 overlaps previous sections
>BFD: test2: section .plt lma 0x804824c overlaps previous sections
>BFD: test2: section .text lma 0x8048280 overlaps previous sections
>BFD: test2: section .fini lma 0x8048404 overlaps previous sections
>BFD: test2: section .rodata lma 0x8048420 overlaps previous sections
>BFD: test2: section .eh_frame lma 0x8048428 overlaps previous sections

and then make the new executable crash with this message :

>./test2: error while loading shared libraries: ./test2: unsupported version
>16 of Verneed record

and readelf -a on it enters in a forever loop.

I do not understand as none of the  sections in the original executable do
overlap, neither in virtual addresses nor in the file itself.

Would someone see where lies the problem?

-- 
Quentin Godfroy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]