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