]> git.ipfire.org Git - thirdparty/gcc.git/commit
RTEMS: Fix GCC specification
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 22 Jan 2021 11:45:49 +0000 (12:45 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 25 Jan 2021 15:41:47 +0000 (16:41 +0100)
commit9fe1c085f0af6e6c05a6813eeae44136ea8ce566
treeb80cf9f59caad89fe86d51ba4295ef97232adf01
parentbeebe1908fa7695615ff5237c6e9e2e46e866b14
RTEMS: Fix GCC specification

The use of -nostdlib and -nodefaultlibs disables the processing of
LIB_SPEC (%L) as specified by LINK_COMMAND_SPEC and thus disables the
default linker script for RTEMS.  Move the linker script to
STARTFILE_SPEC which is controlled by -nostdlib and -nostartfiles.  This
fits better since the linker script defines the platform start file
provided by the board support package in RTEMS.

gcc/

* config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
nostartfiles handling since this is already done by
LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
(ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
is already done by LINK_COMMAND_SPEC.
(LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
evaluation.

(cherry picked from commit 28229916e1b131ad5d17a73603f65229e0a92f58)
gcc/config/rtems.h