summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorlinted <linted@users.noreply.github.com>2022-07-16 16:23:45 -0400
committerWaldemar Brodkorb <wbx@openadk.org>2022-08-08 14:51:00 +0200
commit3e14288eaaf62124d090b5225665632e1fe5d47c (patch)
treeff7061c4a5ef94b3db1de9728f36c7e0ae4877f1 /libc/misc
parent52b67ddcf6086f2d385e1e8c1784645807a8d9b6 (diff)
Added support for creation of Static Position-Independent Executables (PIE) on aarch64
Updated config to allow compilation of rcrt1.o for aarch64 and modified it's crt1.S to relocate dynamic section prior to __uClibc_main. Disabled stack protector when compiling reloc_static_pie.c to avoid TLS access prior to it being setup. Signed-off-by: linted <linted@users.noreply.github.com>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/internals/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/internals/Makefile.in b/libc/misc/internals/Makefile.in
index 4a6e73d2d..69af8b76e 100644
--- a/libc/misc/internals/Makefile.in
+++ b/libc/misc/internals/Makefile.in
@@ -17,7 +17,7 @@ MISC_INTERNALS_SRC := $(patsubst %.c,$(MISC_INTERNALS_DIR)/%.c,$(CSRC-y))
MISC_INTERNALS_OBJ := $(patsubst %.c,$(MISC_INTERNALS_OUT)/%.o,$(CSRC-y))
CFLAGS-__uClibc_main.c := $(SSP_DISABLE_FLAGS)
-
+CFLAGS-reloc_static_pie.c := $(SSP_DISABLE_FLAGS)
libc-y += $(MISC_INTERNALS_OBJ)
ifneq ($(UCLIBC_FORMAT_SHARED_FLAT),y)