Path: chuka.playstation.co.uk!chuka.playstation.co.uk!news From: Majik Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Linker error - assembly problem? Date: Mon, 22 Sep 1997 17:11:56 +0100 Organization: Sinclair MicroComputer Museum Lines: 20 Message-ID: <342698CC.3E24@mudhole.spodnet.uk.com> 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) Hi, I am having a problem linking an object file created with as and one with gcc, the linker dies with an error like 'relocation truncated - GPREL ' and it does this for every variable I have tried to export from the asm file. The exported variables are declared with a .globl then later within a .data section with a .word directive. The C file is then informed of their existance with either a unsigned char * or unsigned long declaration. What have I done wrong? ttfn -- -- Majik - Owner/Curator of the Sinclair Microcomputer Museum -- Spod in a suitcase - ' Have Compiler, will travel ' -- http://mudhole.spodnet.uk.com/~majik/ --