diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-09-22 04:14:07 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-09-22 04:14:07 +0000 |
commit | 7f9086df95b707b4518d22d4d1dbd747085e115d (patch) | |
tree | e5246de14e4af589028bc6d0e85d773b3548cdfa /arch/sh/crt_arch.h | |
parent | cab2b1f9d71db31d6dc4ae9dcab6989182b7b533 (diff) | |
download | musl-7f9086df95b707b4518d22d4d1dbd747085e115d.tar.gz |
size-optimize sh/fdpic dynamic entry point
the __fdpic_fixup code is not needed for ET_DYN executables, which
instead use reloctions, so we can omit it from the dynamic linker and
static-pie entry point and save some code size.
Diffstat (limited to 'arch/sh/crt_arch.h')
-rw-r--r-- | arch/sh/crt_arch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/crt_arch.h b/arch/sh/crt_arch.h index b902dcc8..d63ce0d1 100644 --- a/arch/sh/crt_arch.h +++ b/arch/sh/crt_arch.h @@ -4,6 +4,7 @@ __asm__( ".text \n" ".global " START " \n" START ": \n" +#ifndef SHARED " mov r8, r4 \n" " mova 1f, r0 \n" " mov.l 1f, r5 \n" @@ -12,6 +13,7 @@ START ": \n" " bsr __fdpic_fixup \n" " add r0, r6 \n" " mov r0, r12 \n" +#endif " mov r10, r5 \n" " mov r15, r4 \n" " mov.l r9, @-r15 \n" @@ -24,7 +26,9 @@ START ": \n" " .long __ROFIXUP_END__@PCREL + 4 \n" ); +#ifndef SHARED #include "fdpic_crt.h" +#endif #else |