ld maps sections without consider memory region?

Nick Clifton nickc@redhat.com
Wed Feb 14 10:05:00 GMT 2007


Hi Masaki,

> But ld combined .begin and .tail section to same program header
> like this:
> - - - - - -
> Program Headers:
>   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
>   LOAD           0x000054 0x00000000 0x00000000 0x00204 0x00204 R E 0x4
> 
> Section to Segment mapping:
>   Segment Sections...
>    00     .begin .tail
> - - - - - -
> 
> Address 0x81 to 0x0ff are zero filled. This causes bus error
> as there is no memory. Of course it is unexpected to me.

This sounds like a page size problem.  Have you tried adding the "-N" 
option to the linker command line ?

Cheers
   Nick



More information about the Binutils mailing list