[gnu.utils.bug] ld coughs up nonexternal relocation code

glenne%hplsla@HPLABS.HP.COM (Glenn Engel) (01/04/89)

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