From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 5 Dec 2001 15:17:21 -0500 From: Daniel Jacobowitz To: Tom Rini Cc: Corey Minyard , Franz Sirl , linuxppc-dev@lists.linuxppc.org Subject: Re: Changes to PPC Linux required for GCC 3.1 Message-ID: <20011205151721.A18191@nevyn.them.org> References: <5.1.0.14.2.20011205134825.024d8ed8@mail.lauterbach.com> <3C0E48D2.6000409@acm.org> <20011205173728.GB27936@cpe-24-221-152-185.az.sprintbbd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20011205173728.GB27936@cpe-24-221-152-185.az.sprintbbd.net> Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: On Wed, Dec 05, 2001 at 10:37:28AM -0700, Tom Rini wrote: > > On Wed, Dec 05, 2001 at 10:18:26AM -0600, Corey Minyard wrote: > > > > Franz Sirl wrote: > > > > > > > >I've done > > > > > >-#define RELOC(x) (*PTRRELOC(&(x))) > > >+#define RELOC(x) (*({ typeof(x) * __ptr = PTRRELOC(&(x)); > > >__asm__ ("" : "=r" (__ptr) : "0" (__ptr)); __ptr;})) > > > > > >a while ago in > > >, > > >seems nobody applied it so far. > > > > Ok. It needs to be propped. > > I think the reason this wasn't applied is that Paul said something about > thiws being horriyingly ugly. Corey, can you post a patch that changes > RELOC(x) into a function and nothing else? :) Has either of you tried to boot a kernel in which RELOC is a function? If I'm following any of what's going on here, function symbols are global. To call the function you would need to use RELOC. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/