This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: modification section attributes in .elf
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Tehn Yit Chin <tehn dot yit dot chin at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 7 Aug 2008 15:46:38 +0930
- Subject: Re: modification section attributes in .elf
- References: <bf04f99c0808061749o3def3048w3c41f66ec48951c0@mail.gmail.com>
On Thu, Aug 07, 2008 at 10:49:59AM +1000, Tehn Yit Chin wrote:
> Is there another way of changing the section attribute either via gcc,
> gas or ld so that I don't have modify the attribute using objcopy?
You can start out with the correct section attributes using something
like
.section .boot_identifier,"a",@progbits
in an assembly file.
--
Alan Modra
Australia Development Lab, IBM