This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: Objcopy problem


>>>>> Stefan Eletzhofer writes:

> install/bin/redboot.elf:     file format elf32-littlearm
 
> Sections:
> Idx Name          Size      VMA       LMA       File off  Algn

>   9 .got          00000008  00000000  00000000  00008000  2**2
>                   CONTENTS, ALLOC, LOAD, DATA
>  10 .got.plt      0000000c  00000008  00000008  00008008  2**2
>                   CONTENTS, ALLOC, LOAD, DATA

When I build it, I don't get these. Because these have the LOAD
attribute and an LMA that's way off from the other LOADable
sections which start at 0x50000000, your binary gets bloated.

The .got stuff is for pic code. Maybe your tools are configured
with pic on by default. You might try adding -fno-pic to the
compile/link commands.

--Mark


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