diff options
Diffstat (limited to 'sysdeps/tile/crti.S')
-rw-r--r-- | sysdeps/tile/crti.S | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sysdeps/tile/crti.S b/sysdeps/tile/crti.S index 522373aff5..1d714ab483 100644 --- a/sysdeps/tile/crti.S +++ b/sysdeps/tile/crti.S @@ -70,7 +70,6 @@ _init: #if PREINIT_FUNCTION_WEAK lnk r2 0: -# ifdef __tilegx__ moveli r1, hw2_last(_GLOBAL_OFFSET_TABLE_ - 0b) { shl16insli r1, r1, hw1(_GLOBAL_OFFSET_TABLE_ - 0b) @@ -80,22 +79,12 @@ _init: shl16insli r1, r1, hw0(_GLOBAL_OFFSET_TABLE_ - 0b) shl16insli r0, r0, hw0_got(PREINIT_FUNCTION) } -# else - { - moveli r1, lo16(_GLOBAL_OFFSET_TABLE_ - 0b) - moveli r0, got_lo16(PREINIT_FUNCTION) - } - { - auli r1, r1, ha16(_GLOBAL_OFFSET_TABLE_ - 0b) - auli r0, r0, got_ha16(PREINIT_FUNCTION) - } -# endif ADD_PTR r0, r0, r1 ADD_PTR r0, r0, r2 LD_PTR r0, r0 BEQZ r0, .Lno_weak_fn jalr r0 -#elif defined(__tilegx__) && !defined(NO_PLT_PCREL) +#elif !defined(NO_PLT_PCREL) /* Since we are calling from the start of the object to the PLT, call by loading the full address into a register. */ lnk r2 |