This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: News MIPS option -mno-shared
David Daney <ddaney@avtrex.com> writes:
> I have code that generates stack traces that relies on the structure of the
> function prolog to work. It looks for this:
>
> /*
> * Find function prolog. It will have the form:
> *
> * 3c1c???? lui gp,????
> * 279c???? addiu gp,gp,????
> * 0399e021 addu gp,gp,t9
> * 27bd#### addiu sp,sp,####
> *
> * Where ???? are the offset of the GOT from the function
> * entrypoint, and #### is the amount added to the stack poiner.
> */
>
> Your change will break it.
True, but only if you choose to use -mno-shared when you compile. I'm
not proposing that it be the default, only that it be an option.
Ian