summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2022-09-15 12:30:54 -0700
committerWaldemar Brodkorb <wbx@openadk.org>2022-09-21 10:35:41 +0200
commit0c979facbd8b9c4af702edebec80a58fdb3b3e92 (patch)
treebaf9977cd801a4c83869ccf29c2e21f34c1d9e71 /ldso
parent191c0acf07a4e25a5cdb3937632eb0f81d578965 (diff)
xtensa: add static pie support
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/xtensa/dl-startup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/ldso/xtensa/dl-startup.h b/ldso/ldso/xtensa/dl-startup.h
index 439bdbd7a..c9350c0f2 100644
--- a/ldso/ldso/xtensa/dl-startup.h
+++ b/ldso/ldso/xtensa/dl-startup.h
@@ -7,6 +7,7 @@
* Parts taken from glibc/sysdeps/xtensa/dl-machine.h.
*/
+#ifndef L_rcrt1
__asm__ (
" .text\n"
" .align 4\n"
@@ -81,6 +82,7 @@ __asm__ (
" addi a5, a5, 8\n"
" bnez a6, 3b\n"
" j .Lfixup_stack_ret");
+#endif
/* Get a pointer to the argv value. */
#define GET_ARGV(ARGVP, ARGS) ARGVP = (((unsigned long *) ARGS) + 1)