public inbox for libc-stable@sourceware.org
 help / color / mirror / Atom feed
* [2.24 COMMITTED] [AArch64] Use hidden __GI__dl_argv in rtld startup code
@ 2017-01-01  0:00 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libc-stable; +Cc: nd

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

We rely on the symbol being locally defined so using extern symbol
is not correct and the linker may complain about the relocations.

2017-07-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* sysdeps/aarch64/dl-machine.h (RTLD_START_1): Change _dl_argv to the
	hidden __GI__dl_argv symbol.

[-- Attachment #2: dl_argv.24.diff --]
[-- Type: text/x-patch, Size: 526 bytes --]

diff --git a/sysdeps/aarch64/dl-machine.h b/sysdeps/aarch64/dl-machine.h
index 282805e396..e86d8b5b63 100644
--- a/sysdeps/aarch64/dl-machine.h
+++ b/sysdeps/aarch64/dl-machine.h
@@ -172,8 +172,8 @@ _dl_start_user:							\n\
 	cmp	x0, #0						\n\
 	bne	1b						\n\
 	// Update _dl_argv					\n\
-	adrp	x3, _dl_argv					\n\
-	str	x2, [x3, #:lo12:_dl_argv]			\n\
+	adrp	x3, __GI__dl_argv				\n\
+	str	x2, [x3, #:lo12:__GI__dl_argv]			\n\
 .L_done_stack_adjust:						\n\
 	// compute envp						\n\
 	add	x3, x2, x1, lsl #3				\n\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-12 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01  0:00 [2.24 COMMITTED] [AArch64] Use hidden __GI__dl_argv in rtld startup code Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).