Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!intrepid!len From: len@mips.COM (Len Lattanzi) Newsgroups: comp.sys.mips Subject: Re: ld error msg Message-ID: <41067@mips.mips.COM> Date: 24 Aug 90 05:55:18 GMT References: Sender: news@mips.COM Reply-To: len@mips.COM (Len Lattanzi) Distribution: comp Organization: MIPS Computer Systems, Inc. Lines: 17 In article gargulak@convex.com (Tom Gargulak) writes: :I am getting the following error message when I use the MIPS link editor (ld). : :(name.o): R_GPREL relocation entry with no global pointer reference : It means that you are attempting a full link (generate executable) without using the standard crt startup routines like /lib/crt1.o which initialize the global pointer register. Assuming you're using ld rather than cc because you have a cross target environment in mind you should be able to work around this by either adding the assembly line la gp,_GP to your entry point code or compile everything -G 0 -- \ Len Lattanzi ({ames,pyramid,decwrl}!mips!len) I would have put a disclaimer here but I already posted the article.