linux-mips
[Top] [All Lists]

Re: [Patch v2]: Fix ld pr11138 FAILures on mips*.

To: binutils <binutils@sourceware.org>, Alan Modra <amodra@gmail.com>, rdsandiford@googlemail.com
Subject: Re: [Patch v2]: Fix ld pr11138 FAILures on mips*.
From: David Daney <david.daney@cavium.com>
Date: Mon, 12 Dec 2011 12:24:44 -0800
Cc: Manuel Lauss <manuel.lauss@googlemail.com>, Debian MIPS <debian-mips@lists.debian.org>, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <87y5ukenkn.fsf@firetop.home>
References: <4EE27012.5030508@cavium.com> <20111210003928.GC2461@bubble.grove.modra.org> <4EE2ACB9.9010301@cavium.com> <87y5ukenkn.fsf@firetop.home>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 12/10/2011 02:19 AM, Richard Sandiford wrote:
David Daney<david.daney@cavium.com>  writes:
I will wait a couple of days to give Richard a chance to object.

Looks good to me too.  Thanks for doing this.  I think it should go
on the 2.22 branch as well.


FYI, this is what I committed to both MAIN and the 2.22 branch. I fixed the formatting things noted by Alan, and took the liberty of adding a missing "break;" statement.

2011-12-10  David Daney  <david.daney@cavium.com>

        * elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove.
        (mips_elf_link_hash_table.rld_symbol): New field;
        (MIPS_ELF_RLD_MAP_SIZE): New macro.
        (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol
        in rld_symbol.
        (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol
        in rld_symbol.
        (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map.
        (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling.
        (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to
        calculate DT_MIPS_RLD_MAP value.
        (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol,
        quit initializing rld_value.

Attachment: elfxx-mips.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>