This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: [PATCH]: Make Sparc Target Multi-Arch


> > As the problematic calls are rare (Sun cc compiled 32 bit ABI functions,
> > returning structs), I think that we could live with a warning and returning
> > garbage in the return value. Personally I'd prefer that over AT_ENTRY
> > hacking.
> 
> Ah!  So you're saying this is a concern for Sparc32, but not for
> Sparc64?
> Then I have a solution.  I can easily use ON_STACK for Sparc32, and
> AT_ENTRY_POINT for Sparc64.  That's the beauty of multi-arch!  ;-)
> 
> Then the only losers will be people who activate C2 security on Sparc32.
> 
> What do you think?

I don't have access to a v9 ABI, but looking at the generated v9 code this
seems to be a problem with Sparc32 only.

How hard would it be to default to AT_ENTRY for Sparc32 and make ON_STACK
a user selectable option ?

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de

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