or1k: Support GCC 9

Close #3602.
This commit is contained in:
Sebastian Huber
2018-11-14 07:00:59 +01:00
parent 9a029cec02
commit 28bf4cae78
3 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: crti.o%s crtbegin.o%s}}
%{!nostdlib: %{qrtems: crtbegin.o%s}}
*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s crtn.o%s}
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s}

View File

@@ -20,7 +20,8 @@
/* FIXME: These defines are a blatant hack */
#if defined(__USE_INIT_FINI__)
#if defined(__ARM_EABI__) || defined(__riscv)
#if defined(__ARM_EABI__) || defined(__riscv) \
|| defined(__or1k__) || defined(__or1knd__)
#define FINI_SYMBOL __libc_fini_array
#else
#define FINI_SYMBOL _fini

View File

@@ -29,7 +29,8 @@
* initialization this target and compiler version uses.
*/
#if defined(__USE_INIT_FINI__)
#if defined(__ARM_EABI__) || defined(__riscv)
#if defined(__ARM_EABI__) || defined(__riscv) \
|| defined(__or1k__) || defined(__or1knd__)
#define INIT_NAME __libc_init_array
#else
#define INIT_NAME _init