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


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.


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