Commit 13c4e403 by Doug Rupp Committed by Olivier Hainque

leverage linker relaxation on ppc vxworks RTPs

2018-10-11  Doug Rupp  <rupp@adacore.com>
            Olivier Hainque  <hainque@adacore.com>

        * config/rs6000/vxworks.h (VXWORKS_RELAX_LINK_SPEC): New macro.
        Pass --relax to the linker for RTPs.
        (LINK_SPEC): Append VXWORKS_RELAX_LINK_SPEC.

Co-Authored-By: Olivier Hainque <hainque@adacore.com>

From-SVN: r265054
parent 1cc6eecd
2018-10-11 Doug Rupp <rupp@adacore.com>
Olivier Hainque <hainque@adacore.com>
* config/rs6000/vxworks.h (VXWORKS_RELAX_LINK_SPEC): New macro.
Pass --relax to the linker for RTPs.
(LINK_SPEC): Append VXWORKS_RELAX_LINK_SPEC.
2018-10-11 Andrew Stubbs <ams@codesourcery.com> 2018-10-11 Andrew Stubbs <ams@codesourcery.com>
Jan Hubicka <jh@suse.cz> Jan Hubicka <jh@suse.cz>
Martin Jambor <mjambor@suse.cz> Martin Jambor <mjambor@suse.cz>
...@@ -88,8 +88,15 @@ VXWORKS_ADDITIONAL_CPP_SPEC ...@@ -88,8 +88,15 @@ VXWORKS_ADDITIONAL_CPP_SPEC
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC VXWORKS_LIB_SPEC #define LIB_SPEC VXWORKS_LIB_SPEC
/* For RTPs, leverage linker relaxation. This helps programs referring
to, typically, kernel services too far away for short calls. This is more
precise than -mlongcall and can be overriden with -Wl,--no-relax. */
#define VXWORKS_RELAX_LINK_SPEC "%{mrtp:--relax}"
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC VXWORKS_LINK_SPEC #define LINK_SPEC VXWORKS_LINK_SPEC " " VXWORKS_RELAX_LINK_SPEC
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
#undef ENDFILE_SPEC #undef ENDFILE_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment