[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A possible bug / user error
From: |
Alan Modra |
Subject: |
Re: A possible bug / user error |
Date: |
Sat, 13 Mar 2004 21:31:55 +1030 |
User-agent: |
Mutt/1.4i |
On Fri, Mar 12, 2004 at 04:17:30PM -0800, Adrian B. Weissman wrote:
> Hello:
> I am using objcopy to take an elf32-power pc file
> and convert it to a binary file. My problem is that
> the bss section is not being included in my binary
> image.
By default objcopy only copies sections that have contents. You can
arrange to copy .bss to your binary file with
objcopy -O binary --set-section-flags .bss=alloc,contents
You might find that your elf32-powerpc input file has more than one bss
section, for instance, you might have .bss and .sbss. You need to
mention each bss section that you want included in a --set-section-flags
option.
--
Alan Modra
IBM OzLabs - Linux Technology Centre