mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
[AArch64] Use hidden __GI__dl_argv in rtld startup code
We rely on the symbol being locally defined so using extern symbol is not correct and the linker may complain about the relocations.
This commit is contained in:
parent
76b8266f99
commit
e9177fba13
@ -1,3 +1,8 @@
|
||||
2017-06-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* sysdeps/aarch64/dl-machine.h (RTLD_START_1): Change _dl_argv to the
|
||||
hidden __GI__dl_argv symbol.
|
||||
|
||||
2017-06-21 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_pton_length
|
||||
|
@ -194,8 +194,8 @@ _dl_start_user: \n\
|
||||
cmp " PTR "0, #0 \n\
|
||||
bne 1b \n\
|
||||
// Update _dl_argv \n\
|
||||
adrp x3, _dl_argv \n\
|
||||
str " PTR "2, [x3, #:lo12:_dl_argv] \n\
|
||||
adrp x3, __GI__dl_argv \n\
|
||||
str " PTR "2, [x3, #:lo12:__GI__dl_argv] \n\
|
||||
.L_done_stack_adjust: \n\
|
||||
// compute envp \n\
|
||||
add " PTR "3, " PTR "2, " PTR "1, lsl #" PTR_SIZE_LOG " \n\
|
||||
|
Loading…
Reference in New Issue
Block a user