This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold, strip] Question about the changed offset when stripping
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Alexander Ivchenko <aivchenk at gmail dot com>, binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Mon, 9 Dec 2013 10:22:21 -0800
- Subject: Re: [gold, strip] Question about the changed offset when stripping
- Authentication-results: sourceware.org; auth=none
- References: <CACysShjNGcO=Y5ZU=QDLWetw31FRZUu7ZYbvo2DyJWZ+eOZZ2Q at mail dot gmail dot com> <20131129134722 dot GN9211 at bubble dot grove dot modra dot org> <CAHACq4qbwykqOcTjuQovsqoE0d2dC4FAAtfZOxr=0XrYsViJqw at mail dot gmail dot com> <20131203100957 dot GA3306 at bubble dot grove dot modra dot org> <CACysShi4sKtg_R6RAhGmgKs0qRuvbsU3fLpC-Hz27YMy-sGtrA at mail dot gmail dot com> <20131203112323 dot GC3306 at bubble dot grove dot modra dot org> <CACysShiAr=iLP2Ju2dWsubV5USXxDhQitmydvRfC2=b07Fp7hA at mail dot gmail dot com> <CACysShiCkBdFOx233aBu02esXboe0dBTgf92grxUoEWRbNgUDQ at mail dot gmail dot com> <CACysShjJS8sYZsPO3e8NL6ZTYXFmgiRTGNg=g_B4a8XDkaMXLw at mail dot gmail dot com> <CAMe9rOq7f6dh3zMSYR5xNFt=33SuiReL=WEHcGL3sGHK4Rxmtg at mail dot gmail dot com> <CAHACq4p5_1XFYsZ_owztgtApUE5rE+QF3VQn-bGKDvVVpBwWeA at mail dot gmail dot com>
On Mon, Dec 9, 2013 at 9:43 AM, Cary Coutant <ccoutant@google.com> wrote:
> This sounds related to PR gdb/11786:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=11786
Hasn't that been fixed in GDB?
> -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.
--
H.J.