This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Finding BFD bug
- From: "Dave Korn" <dk at artimi dot com>
- To: "'Ian Lance Taylor'" <ian at wasabisystems dot com>,<pladow at pullman dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Wed, 9 Jun 2004 18:46:06 +0100
- Subject: RE: Finding BFD bug
> -----Original Message-----
> From: binutils-owner On Behalf Of Ian Lance Taylor
> Sent: 09 June 2004 18:43
> > /* A standard 32 bit relocation. */
> > HOWTO (R_MICROBLAZE_32, /* type */
> > 0, /* rightshift */
> > 2, /* size (0 = byte, 1 =
> short, 2 = long) */
> > 32, /* bitsize */
> > false, /* pc_relative */
> > 0, /* bitpos */
> > complain_overflow_bitfield, /* complain_on_overflow */
> > bfd_elf_generic_reloc, /* special_function */
> > "R_MICROBLAZE_32", /* name *//* For
> compatability with coff/pe
> > port. */
> > true, /* partial_inplace */
> > 0xffffffff, /* src_mask */
> > 0xffffffff, /* dst_mask */
> > false), /* pcrel_offset */
> >
> > And it does have bfd_elf_generic_reloc() as the special function.
> >
> > However, I can't seem to find where it is called. I did
> stumble across a
> > comment in the code that might be revealing:
> >
> > /* Addends are stored with relocs. We're done. */
> >
> > That give any hints?
>
> It suggests that the src_mask field should be 0 rather than
> 0xffffffff.
>
> Ian
Shouldn't partial_inplace be false as well, since the comment seems to
indicate that we're on a RELA target here? Overall it looks like a
REL-vs-RELA inconsistency between the linker and the assembler to me.
cheers,
DaveK
--
Can't think of a witty .sigline today....