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]

Re: RFC: Objcopy --only-keep-debug update


> From: "H.J. Lu" <hjl.tools@gmail.com>
> CC: Nick Clifton <nickc@redhat.com>, Binutils <binutils@sourceware.org>
> Date: Sat, 8 Aug 2015 02:00:43 +0200
> References:
>  <CAMe9rOrj+gz-U9OKL8MTq4=CdPss1p2NZ19YDkSww_2GdwegPQ@mail.gmail.com>
> 	<201508072317.t77NHrl1024259@ignucius.se.axis.com>
> Content-Language: en-US
> x-spam-status: No, score=0.312 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001,
> 	DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9,
> 	RCVD_IN_DNSWL_LOW=-0.7, T_DKIM_INVALID=0.01] autolearn=no
> x-virus-scanned: Debian amavisd-new at bastet.se.axis.com
> x-spam-score: 0.312
> dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
>  s=20120113;
>         h=mime-version:in-reply-to:references:date:message-id:subject:from:to
>          :cc:content-type;
>         bh=BV02gFuOV2cF4Yvqoe3CwmJIdIlhh+t9g58lSjkylkY=;
>         b=L3aAgcggmwGJ/g8Z3Rfl7NehuD1sSPVpqbT/J1hk2YBG1UP39z1gOneaIKqA3+VlPt
>          +Ny003AOk1OcqiGYo5VTjSXK10+dCs1PId+6NLi1NG1z95TOXdjTLDJhk3QbfjqM95V+
>          1OlNudgZ1zRnBv1unGqsDr4bmjJa8oIbmjC9nhUs7ct5r4fELlfh2E0BNgWgrGsqHdEr
>          GIY4O2k5n7Ig/MWHQ6tO8yV5lNJ/DnXBSmuMLzX6BtfGFRYsBvJVqP7ZLApVxhWzGHKl
>          PEOxLayH8kYjibd6umCgxYYccV9BCM2nOyWzK9jAJJZyCffNHAT9S3aht0uuHKXp5XhP
>          +E3g==
> x-received: by 10.182.91.4 with SMTP id ca4mr8993663obb.11.1438992043653;
>  Fri, 07 Aug 2015 17:00:43 -0700 (PDT)
> authentication-results: bastet.se.axis.com (amavisd-new); dkim=softfail
>  (fail,	message has been altered) header.i=@gmail.com
> Old-Content-Type: text/plain; charset="utf-8"
> Old-Content-Transfer-Encoding: base64
> X-RBL-Checked: 10.0.2.104 10.0.5.75 10.0.5.78 10.20.1.11 127.0.0.1 209.85.214.179
> Content-Transfer-Encoding: 8bit
> MIME-Version: 1.0
> Content-Type: TEXT/plain; charset=iso-8859-1
> 
> On Fri, Aug 7, 2015 at 4:17 PM, Hans-Peter Nilsson
> <hans-peter.nilsson@axis.com> wrote:
> >> From: "H.J. Lu" <hjl.tools@gmail.com>
> >> Date: Fri, 7 Aug 2015 19:38:39 +0200
> >
> >> On Fri, Aug 7, 2015 at 8:56 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> >> I checked in this patch to fix it.
> >
> >> PR binutils/18785
> >> * binutils-all/objcopy.exp: Run strip-12.
> >> * binutils-all/strip-12.d: New file.
> >> * binutils-all/strip-12.s: Likewise.
> >
> > This uses the ".bss" directive which is common (no pun intended)
> > but not present for all ELF targets.  (I see copy-pasting for
> > lots of targets, maybe it wouldn't hurt to move it into
> > gas/read.c.)  I changed to .section .bss which still provokes
> > the same failure for arm-eabi and i686-linux, and also works for
> > cris-elf.
> 
> Any particular reason not to support .bss/.data for all ELF targets?
> It will make writing ELF assembly test easier.

I don't see what so much easier with writing ".bss" instead of
".section .bss" but otherwise like I said above.

brgds, H-P


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