diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-08-17 13:42:59 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-08-17 14:45:26 +0300 |
commit | cfa64a86d16ceca38fa4af75f8fde27cbef55012 (patch) | |
tree | 594a98416945dce216ec8340c880e3dbc2050615 /libgloss/aarch64 | |
parent | 363dbb9e44d0101f29ec34cadd001893daab3fc6 (diff) |
Fix crt0 init fini code
__USES_INITFINI__ ifdef was incorrectly copied from arm
(it's an arm backend thing in gcc, not meaningful on aarch64)
Diffstat (limited to 'libgloss/aarch64')
-rw-r--r-- | libgloss/aarch64/crt0.S | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S index cc7e84ddf..4ad435e03 100644 --- a/libgloss/aarch64/crt0.S +++ b/libgloss/aarch64/crt0.S @@ -153,12 +153,10 @@ bl FUNCTION (initialise_monitor_handles) #endif -#ifdef __USES_INITFINI__ /* .init and .fini sections are used to create constructors and destructors. Here we call the _init function and arrange for _fini to be called at program exit. */ ldr x0, .Lfini -#endif bl FUNCTION (atexit) bl FUNCTION (_init) @@ -256,10 +254,8 @@ FUNCTION (_cpu_init_hook): GEN_DWORD __bss_start__ .LC2: GEN_DWORD __bss_end__ -#ifdef __USES_INITFINI__ .Lfini: GEN_DWORD FUNCTION(_fini) -#endif #ifdef ARM_RDI_MONITOR .Lenvp: GEN_DWORD env |