Blame SOURCES/glibc-rh1500908.patch

147e83
Backport of:
147e83
147e83
commit e9177fba13549a8e2a6232f46080e5c6d3e467b1
147e83
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
147e83
Date:   Wed Jun 21 13:47:07 2017 +0100
147e83
147e83
    [AArch64] Use hidden __GI__dl_argv in rtld startup code
147e83
    
147e83
    We rely on the symbol being locally defined so using extern symbol
147e83
    is not correct and the linker may complain about the relocations.
147e83
147e83
Adjusted to the old INTDEF/INTUSE mechanism.
147e83
147e83
diff --git a/ports/sysdeps/aarch64/dl-machine.h b/ports/sysdeps/aarch64/dl-machine.h
147e83
index 0e76ca8f146905ef..40b0587ba42cd59e 100644
147e83
--- a/ports/sysdeps/aarch64/dl-machine.h
147e83
+++ b/ports/sysdeps/aarch64/dl-machine.h
147e83
@@ -169,8 +169,8 @@ _dl_start_user:							\n\
147e83
 	cmp	x0, #0						\n\
147e83
 	bne	1b						\n\
147e83
 	// Update _dl_argv					\n\
147e83
-	adrp	x3, _dl_argv					\n\
147e83
-	str	x2, [x3, #:lo12:_dl_argv]			\n\
147e83
+	adrp	x3, _dl_argv_internal				\n\
147e83
+	str	x2, [x3, #:lo12:_dl_argv_internal]		\n\
147e83
 .L_done_stack_adjust:						\n\
147e83
 	// compute envp						\n\
147e83
 	add	x3, x2, x1, lsl #3				\n\