This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Cannot generate relocatable object




I generated an object file using the -r option of the linker,
but when I link this object to have the final executable I got:

"bad reloc address 0xb in section .text"


My aim is to create a library .a. This has already be done for Sun4OS,
Solaris, DecAlpha, Linux, Aix, HP, and I try to port our software on the
NT platform. The global scheme is:
ld -r -o common.o common1.o common2.o ...
ar ru libcommon.a common.o extra1.o extra2.o

And then:
gcc -o myapp app.c libcommon.a

Direct e-mail answers prefered since I only subscribed to
gnu-win32-announce-request.

Thanks.

-- 

 Xavier Fornari 

==================================================
http://www.inria.fr/meije/personnel/Xavier.Fornari
CMA/MEIJE                 Tel: 33 (0)4 93 65 79 65
INRIA                     Fax: 33 (0)4 93 65 79 98
2004 Route des Lucioles       
BP 93
06902 Sophia-Antipolis Cedex  

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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