aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-25 12:29:05 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-25 12:31:23 +0100
commit0433fc2d7d44eafd61017cd0b6c4cab1fcb16990 (patch)
tree91b6dca36fc7cf9c65fc7df9a78a3d9bdb38662a
parent5d01fc7c11606fa0fa36210309df6b10b6e07775 (diff)
downloadgcc-0433fc2d7d44eafd61017cd0b6c4cab1fcb16990.zip
gcc-0433fc2d7d44eafd61017cd0b6c4cab1fcb16990.tar.gz
gcc-0433fc2d7d44eafd61017cd0b6c4cab1fcb16990.tar.bz2
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.
-rw-r--r--gcc/config/rtems.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index e5cba75..313988d 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.