This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Stupid question: linking with a symbol under a different name


Hi Sasha,

> Suppose I have:
> - compiled object file "main.o" with unresolved symbol "symbol1";
> - build shared library "libused.so" with exported symbol "symbol2".
> 
> Is there way to somehow link program "main" from "main.o", telling it to use "symbol2" from "libused.so" as "symbol1"?

Why not create a foo.c file that defines symbol1 and then passes any reference on to symbol2 ?

Cheers
  Nick


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