Path: chuka.playstation.co.uk!chuka.playstation.co.uk!news From: Majik Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Linker error - assembly problem? Date: Tue, 23 Sep 1997 10:55:43 +0100 Organization: Sinclair MicroComputer Museum Lines: 29 Message-ID: <3427921F.120F@mudhole.spodnet.uk.com> References: <342698CC.3E24@mudhole.spodnet.uk.com> <606dbb$5329@emeka.playstation.co.uk> Reply-To: majik@mudhole NNTP-Posting-Host: 194.202.250.27 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (WinNT; I) Gil Jaysmith wrote: > Wotcher squire. Hello again, > The fact that it's a GP error makes it sound like you have too much > stuff in the .sdata and .sbss sections. The C compiler probably thinks > that since the variables are declared as unsigned char* and unsigned > long that they should go into the small-data sections, while the > assembler has already asserted that they're in .data. The compiler's > object file therefore figures it can use GP-relative relocations to > link it all together. Try compiling with the -G0 option. Aha! I see now, I changed the .data in the assembly file to a .sdata and that linked perfectly :) Ta muchly > Oh so it's you is it? My game Reptonmania should be in there > somewhere... My museum is more hardware based - basically as there are far too many games for the speccy ~5000 at the last reckoning, the guy you want is Aleksandr Babaylov - he has a Sinclair Software Museum, at http://zx-museum.org.ru/ I'll probably have to go and play reptonmania now y'know! ttfn -- -- Majik - Owner/Curator of the Sinclair Microcomputer Museum -- Spod in a suitcase - ' Have Compiler, will travel ' -- http://mudhole.spodnet.uk.com/~majik/ --