public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6889] RTEMS: Fix default linker script
@ 2021-01-25 11:31 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2021-01-25 11:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0433fc2d7d44eafd61017cd0b6c4cab1fcb16990
commit r11-6889-g0433fc2d7d44eafd61017cd0b6c4cab1fcb16990
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Mon Jan 25 12:29:05 2021 +0100
RTEMS: Fix default linker script
We have to use ENDFILE_SPEC for the default linker script and not
STARTFILE_SPEC, since STARTFILE_SPEC is place before the user provided
library search paths.
gcc/
* config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
(ENDFILE_SPEC): Evaluate qnolinkcmds.
Diff:
---
gcc/config/rtems.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index e5cba75d345..313988d89e5 100644
--- a/gcc/config/rtems.h
+++ b/gcc/config/rtems.h
@@ -36,11 +36,11 @@
*/
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%{!qrtems:crt0%O%s} " \
-"%{qrtems:" RTEMS_STARTFILE_SPEC " %{!qnolinkcmds:-T linkcmds%s}}"
+"%{qrtems:" RTEMS_STARTFILE_SPEC "}"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
-"%{qrtems:" RTEMS_ENDFILE_SPEC "}"
+"%{qrtems:" RTEMS_ENDFILE_SPEC " %{!qnolinkcmds:-T linkcmds%s}}"
/*
* Some targets do not set up LIB_SPECS, override it, here.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-25 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 11:31 [gcc r11-6889] RTEMS: Fix default linker script Sebastian Huber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).