This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Objcopy --only-keep-debug update
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, Binutils <binutils at sourceware dot org>
- Date: Fri, 7 Aug 2015 17:00:43 -0700
- Subject: Re: RFC: Objcopy --only-keep-debug update
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOrj+gz-U9OKL8MTq4=CdPss1p2NZ19YDkSww_2GdwegPQ at mail dot gmail dot com> <201508072317 dot t77NHrl1024259 at ignucius dot se dot axis dot com>
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.
--
H.J.