public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Also make it possible to call strlen very early
@ 2023-05-17 21:03 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-05-17 21:03 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c93ee967cd688bc6d43c795b48e988075655a67f
commit c93ee967cd688bc6d43c795b48e988075655a67f
Author: Sergey Bugaev <bugaevc@gmail.com>
Date: Wed May 17 22:14:35 2023 +0300
hurd: Also make it possible to call strlen very early
strlen, which is another ifunc-selected function, is invoked during
early static executable startup if the argv arrives from the exec
server. Make it not crash.
Checked on x86_64-gnu: statically linked executables launched after the
exec server is up now start up successfully.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230517191436.73636-10-bugaevc@gmail.com>
Diff:
---
sysdeps/mach/hurd/x86_64/static-start.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sysdeps/mach/hurd/x86_64/static-start.S b/sysdeps/mach/hurd/x86_64/static-start.S
index cc8e2410ea..0fed375cdf 100644
--- a/sysdeps/mach/hurd/x86_64/static-start.S
+++ b/sysdeps/mach/hurd/x86_64/static-start.S
@@ -22,6 +22,9 @@ _start:
leaq __memcpy_sse2_unaligned(%rip), %rax
movq %rax, memcpy@GOTPCREL(%rip)
+ leaq __strlen_sse2(%rip), %rax
+ movq %rax, strlen@GOTPCREL(%rip)
+
call _hurd_stack_setup
xorq %rdx, %rdx
jmp _start1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-17 21:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17 21:03 [glibc] hurd: Also make it possible to call strlen very early Samuel Thibault
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).