[PATCH][MIPS] Add linker emulation for N64 ABI with forced 32-bit symbols
Thu Nov 15 22:21:00 GMT 2012
On 16/11/2012, at 11:08 AM, Richard Sandiford wrote:
> Maxim Kuvyrkov <email@example.com> writes:
>> Tested by building complete MIPS64 toolchain (including glibc) with -msym32.
>> OK to apply?
> Huh. I'm very much against the original change to the n64 TEXT_START_ADDR.
> See this previous discussion on the topic:
> The justification for changing TEXT_START_ADDR from a 32-bit value to a
> larger value was that it would show users if their code was non-portable,
> because anything that assumed 32-bit addresses would now fault. But that
> seems to me like the tools lecturing to the user. As I said in that thread,
> I think users who want to smoke out such portability problems (by making
> sure that the lower 4GB aren't mapped) should be the ones who need to do
> something special.
> I think we should simply revert to a 32-bit TEXT_START_ADDR for all
> n64 emulations. This time I'm even in a position to approve it :-)
> That has the advantage that no GCC patches are needed. Users who
> want this functionality can just upgrade their binutils.
I'm fine with this. I'll hold off posting the GCC patch under the assumption that it will not be necessary.
CodeSourcery / Mentor Graphics
More information about the Binutils