From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen To: egcs@cygnus.com Subject: gcc m68k: pc-relative addressing for code? Date: Sat, 21 Feb 1998 07:58:00 -0000 Message-id: <19980221120121.42072@nemesis> References: <19980221105411.A26167"@kailash.cse.iitb.ernet.in> <6546.888044401@hurl.cygnus.com> X-SW-Source: 1998-02/msg00977.html Hi, is it possible to have gcc create output which only uses PC-relative addressing for code references? I need this for ROM code which is moved around during PMMU initialization - however, variables are in a constant place in RAM and shall *not* be referenced PC-relative, so -fpic or -fPIC seems not to be usable in this case, and the addressing via GOT seems to be a bit inefficient, too - the PC-relative addressing mode would be better (32k code limit is not a problem). (a nice thing to have would be if all variables could be referenced relative to an address register, which is *not* reloaded by gcc - however, I can live without). cu Michael -- In the beginning there was nothing, which exploded.