This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Assign regions to orphan sections


On Thu, Mar 25, 2010 at 10:28:13PM +0000, Joseph S. Myers wrote:
>   [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
>   [ 0]                   NULL            00000000 000000 000000 00      0   0  0
>   [ 1] .text             PROGBITS        40000000 000054 000004 00  AX  0   0  4

Starting at file offset 0x54.

>   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
>   LOAD           0x000000 0x3fffffac 0x3fffffac 0x00060 0x00060 R E 0x1

So the ELF file header was placed at 0x3fffffac, and included in the
memory image.

On ARM EABI:

  [ 1] .text             PROGBITS        40000000 008000 000004 00  AX  0   0  4

Note the big offset, 0x8000.

  LOAD           0x008000 0x40000000 0x40000000 0x0000c 0x0000c R E  0x8000

And the ELF header was not loaded.

I don't think the file header should be loaded in your case, either.
Anyone know what determines this?  It's not triggered by use of
SIZEOF_HEADERS, I don't think.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]