[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] avr-objcopy not copying custom section...

From: Boyapati, Anitha
Subject: Re: [avr-gcc-list] avr-objcopy not copying custom section...
Date: Thu, 26 May 2011 14:11:50 +0800

>SHF_WRITE      This section contains data that should be writable during
>               execution.
>SHF_ALLOC      This section occupies memory during process execution.  Some
>               trol  sections  do  not  reside  in the memory image of an
>               file.  This attribute is off for those sections.
>SHF_EXECINSTR  This section contains executable machine instructions.
>SHF_MASKPROC   All bits included in this mask are  reserved  for
>               cific semantics.
>So we can see that the ELF format does provide explicit flags for X and A.

Yes, ELF does provide X and A. I don't disagree. And Yes, they directly map to 
'CODE' and 'ALLOC' flags printed by objdump.

Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000000ca  00000000  00000000  00000094  2**1
  1 .bss          00000002  00800100  00800100  0000015e  2**0

But the flags that ELF does not specify are - 'CONTENTS' and 'LOAD'. These are 
BFD specific flags. Objdump program computes and prints them in section headers 
regardless of the object file format type (mostly). 

So, even if we are dumping ELF sections, objdump prints certain flags which are 
not directly specified by ELF. This is the point I am referring to. Hopefully I 
am clear.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]