Path: 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 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