This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] MIPS support for --hash-style=gnu
- From: Rafael EspÃndola <rafael dot espindola at gmail dot com>
- To: "Neil Schellenberger (neschell)" <neschell at cisco dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 5 Nov 2015 13:45:55 -0500
- Subject: Re: [PATCH] MIPS support for --hash-style=gnu
- Authentication-results: sourceware.org; auth=none
- References: <b49cd7d6b04d41749d56d557879ad4a6 at XCH-RCD-006 dot cisco dot com> <CAG3jRe+Bifxd2YJCHRgKr5OR=Ryb05hHrRVrJneAzCwZ2ePLww at mail dot gmail dot com> <00281f3787744b1d800f6889eb7ed183 at XCH-RCD-006 dot cisco dot com>
Now in plain text:
I am not sure I follow. In each .o file the text sections have
relocations to the got entries, not indexes, no?
On 5 November 2015 at 13:27, Neil Schellenberger (neschell)
> I did make a couple of abortive attempts to think of ways to do that,
> but in the end I failed. The chief difficulty seems to me (perhaps
> entirely incorrectly) that any change in the order of the GOT entries
> would require a related change to all references to them from the
> .text and/or relocations. (I was really trying to avoid fiddling with
> that since I was already in over my head trying to grok BFD,
> multi-got, mxgot, etc.... ) Is there some provably correct way to go
> about back-patching the new GOT entry numbers into the .text?
> (For obvious reasons, I /really/ want to avoid also needing any
> changes in all possible upstream code generators e.g. gcc, gas,
> clang etc.)
> I would be more than happy to hear that I am completely mistaken,
> though! I knew next to nothing about any of this before I started
> and wouldn't pretend to claim to know much more about it now....
>> -----Original Message-----
>> From: Rafael EspÃndola [mailto:firstname.lastname@example.org]
>> Sent: Thursday, November 05, 2015 12:14 PM
>> To: Neil Schellenberger (neschell) <email@example.com>
>> Cc: firstname.lastname@example.org
>> Subject: Re: [PATCH] MIPS support for --hash-style=gnu
>> Wouldn't it be possible to sort the got entries so that the symbols
>> end up in the same order as the gnu hash table?