diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 7fcf2fb9d61..1b0c5672978 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2018-05-07 Amaan Cheval + + * config.host (x86_64-*-rtems*): Build crti.o and crtn.o. + 2018-04-27 Andreas Tobler Maryse Levavasseur diff --git a/libgcc/config.host b/libgcc/config.host index 11b4acaff55..f8fd78279d3 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -611,6 +611,11 @@ i[34567]86-*-elf*) ;; x86_64-*-elf* | x86_64-*-rtems*) tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" + case ${host} in + x86_64-*-rtems*) + extra_parts="$extra_parts crti.o crtn.o" + ;; + esac ;; x86_64-*-fuchsia*) tmake_file="$tmake_file t-libgcc-pic"