public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Relocation question (was: RE: Unsupported targets slated for removal)
@ 2005-04-06 10:24 Christian Groessler
  2005-04-06 10:40 ` Dave Korn
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christian Groessler @ 2005-04-06 10:24 UTC (permalink / raw)
  To: binutils; +Cc: chris

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



If I compile it with the old assembler, I get the following relocation
entry in the object file:


/tmp/yyy.o:     file format coff-z8k

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE              VALUE
00000000 r_imm32           INITFN


If I compile it with my BFD_ASSEMBLER modified version, I get


/tmp/zzz.o:     file format coff-z8k

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE              VALUE
00000000 r_imm32           .text


Please note the different VALUEs.

If I compile the same source file with i386-coff-as, I get the same
result:


/tmp/333.o:     file format coff-i386

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE              VALUE
00000000 dir32             .text


Shouldn't the VALUE be INITFN, like in the old non-bfd assembler?

regards,
chris


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-07 22:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-06 10:24 Relocation question (was: RE: Unsupported targets slated for removal) Christian Groessler
2005-04-06 10:40 ` Dave Korn
2005-04-06 12:49   ` Alan Modra
2005-04-06 11:10 ` Matt Thomas
2005-04-06 12:50   ` Alan Modra
2005-04-06 12:46 ` Alan Modra
2005-04-07 14:42   ` Christian Groessler
2005-04-07 15:58     ` Ian Lance Taylor
2005-04-07 22:52     ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).