From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16703 invoked by alias); 9 Dec 2013 16:04:43 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 16692 invoked by uid 89); 9 Dec 2013 16:04:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f173.google.com Received: from Unknown (HELO mail-ob0-f173.google.com) (209.85.214.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 09 Dec 2013 16:04:42 +0000 Received: by mail-ob0-f173.google.com with SMTP id gq1so3905086obb.4 for ; Mon, 09 Dec 2013 08:04:34 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.165.2 with SMTP id yu2mr1748903oeb.78.1386605074417; Mon, 09 Dec 2013 08:04:34 -0800 (PST) Received: by 10.76.105.174 with HTTP; Mon, 9 Dec 2013 08:04:34 -0800 (PST) In-Reply-To: References: <20131129134722.GN9211@bubble.grove.modra.org> <20131203100957.GA3306@bubble.grove.modra.org> <20131203112323.GC3306@bubble.grove.modra.org> Date: Mon, 09 Dec 2013 16:04:00 -0000 Message-ID: Subject: Re: [gold, strip] Question about the changed offset when stripping From: "H.J. Lu" To: Alexander Ivchenko Cc: Cary Coutant , binutils , Ian Lance Taylor Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00072.txt.bz2 On Mon, Dec 9, 2013 at 4:44 AM, Alexander Ivchenko 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.