public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* libgcc.a with leading-underscore
@ 2002-10-23  9:58 Aron Wahl
  0 siblings, 0 replies; only message in thread
From: Aron Wahl @ 2002-10-23  9:58 UTC (permalink / raw)
  To: gcc-help

Hello,

I am trying to build a crossgcc 3.2 for arm-little-elf under RH Linux =
8.0.
The compiler is build using newlib, and everything went fine.

Because I have some old legacy assembler/c-code, I need to compile the =
C-code
with a leading underscore.

When trying to compile c-code generated with gcc -fleading-underscore, =
the linker mentions that some functions
are unresolved. Those functions are located in the compiler lib =
libgcc.a.

e.g. The generated c-code reference a function called ___modsi3 but the =
libgcc.a contains only __modsi3

Is there a way to compile the libgcc.a and other necessary libraries =
with a leading-underscore?

We tried to do that by modifying the TCFLAGS in the gcc Makefile and =
adding -fleading-underscore, but that
doesn't help, and the compiler doesn't compile anymore correctly?!?

Aron Wahl

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-23 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23  9:58 libgcc.a with leading-underscore Aron Wahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).