This is the mail archive of the binutils@sources.redhat.com 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]

Section alignment


Hello,

we'dike to use the Microtec C-compiler for m68k targets together with gdb. 
The compiler can generate IEEE-695 output, my gdb needs coff as input, so we
convert between these formats with objcopy with:

objcopy -I ieee -O coff-m68k --debugging somefile.abs somefile.coff

Unfortunately objcopy generates all sections to longs (4), but some
parts of my program assume word alignment (2), hence the program doesn't work
anymore. 

Q: Is there a general and easy solution to adjust the alignment for a section
when converted with objcopy ? Changing the linker scripts is not possible, 
because that'd lead to maintainance problems and conflicts with our other tools.

Thanks in advance

Dominik
   
[-------------------------------------------------------------------]

Thinking is effort. Believe is comfort.

-- L. Marcuse (1894-1971) dt. philosopher 
  
eMail: Dominik.Froehlich@epost.de
Tel. priv: +493727-613763
Tel. beruf.: +493727-623811



   

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