This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgcc.a with leading-underscore


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


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