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]

Re: Rename symbol at link time


DamienDaG <deusnei-div@yahoo.fr> writes:

> with
> _fct1_wrongname = _fct9 ;

This is the version you want, since this:

> nm -AB f1.o outputs :
> $ nm -AB f1.o
> f1.o:00000000 b .bss
> f1.o:00000000 d .data
> f1.o:00000000 N .stab
> f1.o:00000000 N .stabstr
> f1.o:00000000 t .text
> f1.o:         U ___main
> f1.o:         U __alloca
> f1.o:         U _fct1_wrongname
> f1.o:         U _fct2
> f1.o:00000012 T _fct9
> f1.o:0000002a T _main
> f1.o:         U _printf

prints leading underscores.

You should tell us that version of the GNU binutils you are using.  You
should tell us what type of system you are running on.

> I get 
> ld: BFD 2.13 assertion fail ../../src/bfd/stabs.c:783

The error message suggests that you are using GNU binutils 2.13, which
is very very old.  So the first thing I would suggest is using a current
version.

Ian


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