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

Cary Coutant ccoutant@google.com
Mon Dec 9 17:43:00 GMT 2013


This sounds related to PR gdb/11786:

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

-cary


On Mon, Dec 9, 2013 at 8:04 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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