This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Section alignment
- To: binutils at sources dot redhat dot com
- Subject: Section alignment
- From: Dominik Fröhlich <Dominik dot Froehlich at epost dot de>
- Date: Tue, 30 Jan 2001 09:55:38 +0100
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