This is the mail archive of the
mailing list for the crossgcc project.
Re: underscore - coff vs. aout
- To: firstname.lastname@example.org
- Subject: Re: underscore - coff vs. aout
- From: Jeffrey A Law <email@example.com>
- Date: Mon, 12 Jul 1999 13:44:04 -0600
- Reply-To: firstname.lastname@example.org
In message <852567AC.0059EF97.email@example.com>you write:
> I have a number of assembly files with symbols written with a underscore
> prepended so that they will link with .c files compiled for a.out format.
> I was thinking of changing to coff format, and I would like to know if
> there was a way to compile the .c files for coff so that they would still
> link correctly to the assembly files (that is, with prepended underscores).
> Changing every symbol would be a large undertaking, and I would like to
> avoid it if possible.
> Any suggestions?
gcc-2.95 has support for building code with and without leading underscores
on some targets which might help.
Or you could always write a program which sucks in a .o/.a, renames all
the symbols, then writes a new .o/.a. It's just a series of hacks to objcopy.
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
To remove yourself from the crossgcc list, send
mail to firstname.lastname@example.org with the
text 'unsubscribe' (without the quotes) in the
body of the message.