Re: [PATCH] [MIPS] Fix order of eh_frame sections in linker scripts

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Apr 28 18:17, Faraz Shahbazker wrote:
> The compiler driver positions the linker script at the end of the linker
> command-line, after crtend.o.  As a result, any INPUT objects and archive
> GROUPs introduced by the linker script are placed after crtend.o and the
> end-of-frame marker provided by crtend.o ends up in between .eh_frames
> instead of being at the end.
> 
> This has always been a problem, but a binutils update to clean-up
> redundant NULL markers in .eh_frame exposes it as a execution failure in
> exception-handling tests.  This patch re-orders .eh_frames in all
> MIPS linker scripts so that the one from crtend.o is always placed last.
> 
> libgloss/
> 	* mips/array.ld: Re-order to place .eh_frame from crtend.o
> 	after all other .eh_frame sections.
> 	* mips/cfe.ld: Likewise.
> 	* mips/ddb-kseg0.ld: Likewise.
> 	* mips/ddb.ld: Likewise.
> 	* mips/dve.ld: Likewise.
> 	* mips/idt.ld: Likewise.
> 	* mips/idt32.ld: Likewise.
> 	* mips/idt64.ld: Likewise.
> 	* mips/jmr3904app.ld: Likewise.
> 	* mips/lsi.ld: Likewise.
> 	* mips/mti32.ld: Likewise.
> 	* mips/mti64.ld: Likewise.
> 	* mips/mti64_64.ld: Likewise.
> 	* mips/mti64_n32.ld: Likewise.
> 	* mips/nullmon.ld: Likewise.
> 	* mips/pmon.ld: Likewise.
> 	* mips/sde32.ld: Likewise.
> 	* mips/sde64.ld: Likewise.
> ---
>  libgloss/mips/array.ld      | 7 ++++++-
>  libgloss/mips/cfe.ld        | 8 +++++++-
>  libgloss/mips/ddb-kseg0.ld  | 7 ++++++-
>  libgloss/mips/ddb.ld        | 7 ++++++-
>  libgloss/mips/dve.ld        | 8 +++++++-
>  libgloss/mips/idt.ld        | 8 +++++++-
>  libgloss/mips/idt32.ld      | 7 ++++++-
>  libgloss/mips/idt64.ld      | 7 ++++++-
>  libgloss/mips/jmr3904app.ld | 7 ++++++-
>  libgloss/mips/lsi.ld        | 7 ++++++-
>  libgloss/mips/mti32.ld      | 7 ++++++-
>  libgloss/mips/mti64.ld      | 8 +++++++-
>  libgloss/mips/mti64_64.ld   | 8 +++++++-
>  libgloss/mips/mti64_n32.ld  | 8 +++++++-
>  libgloss/mips/nullmon.ld    | 8 +++++++-
>  libgloss/mips/pmon.ld       | 8 +++++++-
>  libgloss/mips/sde32.ld      | 8 +++++++-
>  libgloss/mips/sde64.ld      | 8 +++++++-
>  18 files changed, 118 insertions(+), 18 deletions(-)

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIyBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlzGuYYACgkQ9TYGna5E
T6C8cg/3SfGU5KrAJ5nJBEiqqfYfciTiofwiSf5fS+Ed+oXvcniTCw9d/sHGrKqt
+S7lSFdW98abcaRm9hYpfwlovIevdJ/7hzitzEy8vuNiuq0w2PGWxju8tIbL9aur
IxSWvLMisxIxYthW6tmc+EL/nxQSK7TGlt+7AeZXzpsWVuqHQOsclhcqyqn+yYeI
Ljo3QHyuahhY4b9/HO28qf4/qcd7HU8p5R0V1t0mFF+eMNrWxqMv0sx+4Sx9sEpz
hWsnk/BuHL2Rxui3FRWpfAa9Y766M9eVcmK2rLAMrr4hK9f0Ms9dg/ASV442NDAO
uc3ZNbTmyMd4FIjmXnfUrqW6agpFIRLX1guGmeJI4fkreUP31XmWRr1LX+fTCLy9
fuhyO4sjh69MT0cuXDk6yai6wga+foibTtSXXmUTz2lXWe+IF4QyzbLrkvA7FKZC
UpqnM6tLgrcIyuNcSDbaWb1HmUXAG+HVZZDTgMwjTqRNDD46FNoqwkiZKCly8kPT
q9n90lgk+WwKb7o0hoVsdqe5QJ1/bIqF2fjPmGZDk6L3OvRJAWocrggNMn9sL7B5
lXFt6ogLrshwcfipK6B+kKfzrAXt7JZzHTZyyC1KvoBntWT6pFi+fjAXbaDZ7ioN
4ovppIIbnwa8lf0cUj0AortPz38W5vZ+Xh+x+eNFsIm4C8yVbQ==
=PQEa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.