🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Glenn Engel Tue, 03 Jan 1989 21:32
ld coughs up nonexternal relocation code
#1439
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads