diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-06 16:34:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-05-05 19:47:40 +0200 |
commit | 4461384026a708bc0267b2965144b42f95689974 (patch) | |
tree | f27dddd881d7bfdd3d81373da875daaef8b712d2 /gcc/config/or1k/rtems.h | |
parent | 1ea8de4c8c23791c2c1ca231cc3461a4a9fc1efb (diff) | |
download | gcc-4461384026a708bc0267b2965144b42f95689974.zip gcc-4461384026a708bc0267b2965144b42f95689974.tar.gz gcc-4461384026a708bc0267b2965144b42f95689974.tar.bz2 |
RTEMS: Improve GCC specification
Add a start/end file specification if the -qrtems option is present.
Allow targets to customize it.
Support the standard -nodefaultlibs option.
gcc/
* config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
(RTEMS_ENDFILE_SPEC): Likewise.
(STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
(ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
(LIB_SPECS): Support -nodefaultlibs option.
* config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
(RTEMS_ENDFILE_SPEC): Likewise.
* config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
(RTEMS_ENDFILE_SPEC): Likewise.
* config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
(RTEMS_ENDFILE_SPEC): Likewise.
Diffstat (limited to 'gcc/config/or1k/rtems.h')
-rw-r--r-- | gcc/config/or1k/rtems.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/or1k/rtems.h b/gcc/config/or1k/rtems.h index 9473143..d4b8fef 100644 --- a/gcc/config/or1k/rtems.h +++ b/gcc/config/or1k/rtems.h @@ -28,3 +28,6 @@ builtin_assert ("system=rtems"); \ } \ while (0) + +#define RTEMS_STARTFILE_SPEC "crtbegin%O%s" +#define RTEMS_ENDFILE_SPEC "crtend%O%s" |