This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Changing sections attributes


Hi,

I'm trying to use GNU gcc/ld for an embedded developement and I'm facing
some troubles.

The target OS has some special application that changes somewhat the
binaries in order to be able to use multiple applications.

Here's what I got:

test/app.ieee:     file format ieee

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 CODE          00001ae4  00000000  00000000  00000000  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  1 zerovars      0000003c  00001ae4  00001ae4  00000000  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000214  00001b20  00001b20  00000000  2**2
                  ALLOC, DATA
  3 .debug        00002498  00000000  00000000  00002e2a  2**0
                  CONTENTS, DEBUGGING

and here's where I want to go (done by a commercial compiler):

appli.x:     file format ieee

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 CODE          0000182e  00000000  00000000  00000000  2**1
                  CONTENTS, ALLOC, LOAD, CODE
  1 zerovars      0000020c  00000000  00000000  00000000  2**1
                  ALLOC, DATA
  2 .debug        00006a64  00000000  00000000  00002e0c  2**0
                  CONTENTS, DEBUGGING

Does anyone knows how to change CODE and DATA flags ?
How to get rid of .bss ?
How to change the Algn ?


-- 

Xavier Ordoquy
Chef de projet SESAM-Vitale
Meditrans


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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