This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: objcopy test failure on mips-linux


>>>>> "Ralf" == Ralf Baechle <ralf@uni-koblenz.de> writes:

    Ralf> On Wed, Mar 15, 2000 at 11:36:15AM +0100, Andreas Jaeger
    Ralf> wrote:

    >> This has been introduced by Mark Mitchel in revision 1.12 of
    >> the file: 1999-07-01 Mark Mitchell <mark@codesourcery.com>
    >> 
    >> * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
    >> _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
    >> 
    >> 
    >> Mark, can you comment on this, please?  This part doesn't look
    >> correct to me (read the whole thread for details, I can send it
    >> if you need it).  It breaks objcopy and creates empty rea.text
    >> sections :-(.

    Ralf> Afair N32 and 64 ABI files use both kinds of relocations.

    Ralf> (Should check the docs but they're about 10000km away ...)

I'm sorry -- way too much water under that bridge.  I don't remember
well enough any more.  If you think it's wrong, it may be wrong.

The top-level problem, though, is that on IRIX6 we need both REL and
RELA relocation sections simultaneously -- as you say both N32 and
64-bit objects use both at once.  I'm not surprised it creates empty
sections; as I recall there didn't seem any way to know up front
whether or not you needed the sections.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]