[gold, strip] Question about the changed offset when stripping

H.J. Lu hjl.tools@gmail.com
Mon Dec 9 16:04:00 GMT 2013


On Mon, Dec 9, 2013 at 4:44 AM, Alexander Ivchenko <aivchenk@gmail.com> wrote:
>> However, after updating to gdbserver 7.6 I was able to load the debug
>> info.. Also if I firstly just objcopy the linked binary (thus, erasing
>> the padding between .got.plt and .bss) and then strip
>
> sorry: I've accidentally sent it before finishing. I meant that if I
> firstly objcopy the linked binary (thus, erasing
>  the padding between .got.plt and .bss) and then strip it, then
> gdbserver<->gdb are successfully loading the debug info even for
> gdbserver < 7.6.
> That's cause in this case the addresses of all remained sections in
> stripped and not stripped binaries are the same.
>

Please open a bug report with a testcase to show
the actual problem with GDB.  I will take a look.

Thanks.

-- 
H.J.



More information about the Binutils mailing list