🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1439

ld coughs up nonexternal relocation code

#1439
From: Glenn Engel
Date: Tue, 03 Jan 1989 21:32
31 lines
995 bytes
When linking certain files which were linked previously with -r, an error
message is generated.  Here's the scenario:

==============================
main.c:

int junk[3];
main()
{
 junk[1] = 2;
}
=============================
gcc -c main.c

gcc-ld -r main.o -o m.o

gcc m.o

ld: nonexternal relocation code invalid in m.o

I should be able to link with -r and then use this result in a later
link without generating an error.

I am using the most recent version of ld from binutils. (As of Dec 21)

--
 |  Glenn R. Engel
 |  Hewlett-Packard 
 |  (206) 335-2066
 |  glenne%hplsla@hplabs.hp.com
Technical Details
Message-ID: <8901032132.AA16734@labgre.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplsla

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!HPLABS.HP.COM!glenne%hplsla
From: glenne%hplsla@HPLABS.HP.COM (Glenn Engel)
Newsgroups: gnu.utils.bug
Subject: ld coughs up nonexternal relocation code
Message-ID: <8901032132.AA16734@labgre.HP.COM>
Date: 3 Jan 89 21:32:06 GMT
Sender: news@tut.cis.ohio-state.edu
Organization: GNUs Not Usenet
Lines: 31