>-----Original Message----- >From: avr-gcc-list-bounces+anitha.boyapati=atmel....@nongnu.org >[mailto:avr-gcc-list-bounces+anitha.boyapati=atmel....@nongnu.org] On >Behalf Of Boyapati, Anitha >Sent: Wednesday, May 25, 2011 10:34 PM >To: dva...@internode.on.net; avr-gcc-list@nongnu.org >Subject: Re: [avr-gcc-list] avr-objcopy not copying custom section... > > >>> >>> Yes. That is where the confusion stemmed from. >> >>Hi Anitha, >> >>Last time, I didn't look exhaustively for flags in the ELF format. With >>the aid of "readelf -e test.elf", we can see that there are more section >>flags in the section header: > >... > >>Key to Flags: >> W (write), A (alloc), X (execute), M (merge), S (strings) >> I (info), L (link order), G (group), x (unknown) >> O (extra OS processing required) o (OS specific), p (processor specific) >> >>I overlooked that before. In the sh_flags member of the Shdr struct, the >>ELF format does have separate explicit alloc and execute flags. > >I did not :-) > >Initially I referred to the age old System V ABI spec for reference which >still had R, W and X flags. However the ELF dump showed more (as you have >mentioned below). > >> >>> 'objdump' program works on BFD structures. The set of BFD section >>> flags for a super set to ELF section flags. So, the dump of section >>> headers shows BFD flags but not ELF flags. >> > > >What made me mention the BFD flags is w.r.t 'CONTENTS' and 'LOAD'. These do >not appear in ELF spec as section attributes. So I think objdump is just >dumping ELF+ extra BFD attributes. >
Oops, typo. Please read attributes as flags. Anitha _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list