This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH 2/2] MIPS16: MIPS16 support proper
On Mon, 2013-01-28 at 09:35 -0800, Steve Ellcey wrote:
> OK, I see where this is happening now. crti (from glibc) is mips16 and
> crtbegin (from gcc) is mips32. crtbegin is mips32 because it uses
> CRT_CALL_STATIC_FUNCTION and that has '.nomips16' in it. I am not sure
> how to rewrite CRT_CALL_STATIC_FUNCTION in mips16 to avoid this and it
> looks like the codesourcery version of GCC is handling this by making
> all .init/.fini code mips32 instead of mips16. So, should I try to make
> crti use a mips32 .init or make crtbegin use a mips16 .init? I am not
> sure which is better.
>
> Steve Ellcey
> sellcey@mips.com
Following up to my own email, I think I was wrong about codesourcery
using mips32 code in .init/.fini, it looks like they have a GCC patch
to define CRT_CALL_STATIC_FUNCTION differently for mips16/mips32. I am
going to try and apply that patch to my ToT GCC and see what happens.
Steve Ellcey
sellcey@mips.com