This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: converting binary file into object
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Christian Groessler <cpg at aladdin dot de>
- Cc: binutils at sources dot redhat dot com, chris at groessler dot org
- Date: Tue, 21 May 2002 09:01:45 +0930
- Subject: Re: converting binary file into object
- References: <87wuu0aweh.fsf@power.cnet.aladdin.de>
On Sun, May 19, 2002 at 07:18:46PM +0200, Christian Groessler wrote:
> Now my question: How can I set the .rodata section flags to include
> READONLY
objcopy --set-section-flags
> and how can I set it's alignment to 4 (2**2)?
Include another object file in the link with a .rodata section having
your required alignment. An empty .rodata might even work.
--
Alan Modra
IBM OzLabs - Linux Technology Centre