This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH][MIPS] Add linker emulation for N64 ABI with forced 32-bit symbols


On 16/11/2012, at 11:22 AM, David Daney wrote:

> On 11/15/2012 02:18 PM, Maxim Kuvyrkov wrote:
>> On 16/11/2012, at 10:56 AM, David Daney wrote:
>> 
...
>> 
>> I'm fuzzy on the details (this was implemented >2 years ago), below is what I remember.  There also was a prerequisite patch for this (http://sourceware.org/ml/binutils/2011-11/msg00097.html) with an explanation of sorts.
>> 
>> The parts that stuck in my brain is that the library being loaded above 32-bit address space is not a problem.  As long as .plt of the executable is in 32-bit address space, things work (can't remember exactly why, though).
>> 
> 
> That makes sense.
> 
> Really I was wondering how you could have build a working glibc with -msym32, as you stated that you tested it that way.
> 
> I would expect only the application program to be built with -msym32 and glibc to be 'stock'

You are, probably, right here.  The glibc was likely built without -msym32 and the tests from gcc/g++/libstdc++/glibc testsuites were built with -mplt -msym32.

--
Maxim Kuvyrkov
CodeSourcery / Mentor Graphics


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