Section alignment

Dominik Fröhlich Dominik.Froehlich@epost.de
Tue Jan 30 01:21:00 GMT 2001


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



   


More information about the Binutils mailing list