[SLOF] [PATCH slof] qemu/js2x/client: Support binutils >= 2.25.1
Alexey Kardashevskiy
aik at ozlabs.ru
Tue Nov 3 11:24:25 AEDT 2015
On 11/02/2015 03:44 PM, Segher Boessenkool wrote:
> On Mon, Nov 02, 2015 at 12:40:47PM +1100, Alexey Kardashevskiy wrote:
>> On 10/26/2015 05:37 PM, Alexey Kardashevskiy wrote:
>>> The recent binutils version introduces explicit definition of
>>> a TOC symbol which points to the .toc section and enforces .toc
>>> alignment to 256 rather than 8 bytes before.
>>>
>>> For now the TOC symbol points to same location as it was before -
>>> start of .toc + 0x8000; however as this might change, we should not
>>> rely on that in the source code.
>>>
>>> This changes __toc_start (for qemu and js2x boards), _got (for net-snk,
>>> takeover, rtas) in linker scripts to use explicitely defined TOC if
>>> defined and fall back to the older scheme if not.
>>>
>>> This changes r2 (the register pointing to TOC) setup code not to add
>>> 0x8000 as linker scripts do that now.
>>
>> No opinion on this, really? So I just push it and then watch people
>> complaining? :)
>
> FWIW, it looks correct to me. I assume you have tested it? ;-)
> (Also with older binutils?)
Sure I did, with both old and new binutils ;)
--
Alexey
More information about the SLOF
mailing list