Relocation question (was: RE: Unsupported targets slated for removal)
Matt Thomas
matt@3am-software.com
Wed Apr 6 11:10:00 GMT 2005
More information about the Binutils mailing list
Wed Apr 6 11:10:00 GMT 2005
- Previous message (by thread): Relocation question (was: RE: Unsupported targets slated for removal)
- Next message (by thread): Relocation question (was: RE: Unsupported targets slated for removal)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Christian Groessler wrote: > Hi, > > >>----- Alan Modra wrote ----- >>On Tue, Mar 22, 2005 at 06:08:30PM +0100, Christian Groessler wrote: >> >>>> z8k-*-* Christian, please update z8k to use bfd! >>> >>>Is there a guide how to do this somewhere, or should I simply start >>>defining BFD_ASSEMBLER and then fix what breaks... >> >>Yes, set bfd_gas=yes in configure.tgt, then fix what breaks. Compare >>target object files before and after.. > > > While doing this I've encountered the following problem. Consider this > source file: > > .text > .long INITFN > INITFN: nop INITFN does not seem to be a .globl symbol so it's not exported from the object. > Shouldn't the VALUE be INITFN, like in the old non-bfd assembler? I don't think so. Since INITFN is not global, the reloc can't reference it. So instead, the reloc uses .text+4; I'm assuming that the assembler placed a value of 4 in the .long. Does the reloc change if you add .globl INITFN ? -- Matt Thomas email: matt@3am-software.com 3am Software Foundry www: http://3am-software.com/bio/matt/ Cupertino, CA disclaimer: I avow all knowledge of this message.
- Previous message (by thread): Relocation question (was: RE: Unsupported targets slated for removal)
- Next message (by thread): Relocation question (was: RE: Unsupported targets slated for removal)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list