RTEMS: Improve GCC specification
commit4461384026a708bc0267b2965144b42f95689974
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 6 Apr 2020 14:34:50 +0000 (6 16:34 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 5 May 2020 17:47:40 +0000 (5 19:47 +0200)
treef27dddd881d7bfdd3d81373da875daaef8b712d2
parent1ea8de4c8c23791c2c1ca231cc3461a4a9fc1efb
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.
gcc/ChangeLog
gcc/config/or1k/rtems.h
gcc/config/rs6000/rtems.h
gcc/config/rtems.h
gcc/config/v850/rtems.h