delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/31/10:43:20

From: Xavier DOT Fornari AT sophia DOT inria DOT fr
Subject: Cannot generate relocatable object
31 Aug 1997 10:43:20 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199708281502.RAA17182.cygnus.gnu-win32@filtre.inria.fr>
Mime-Version: 1.0 (generated by tm-edit 7.80)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com


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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019