mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
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>
This commit is contained in:
parent
70fd6b3b23
commit
c93ee967cd
@ -22,6 +22,9 @@ _start:
|
|||||||
|
|
||||||
leaq __memcpy_sse2_unaligned(%rip), %rax
|
leaq __memcpy_sse2_unaligned(%rip), %rax
|
||||||
movq %rax, memcpy@GOTPCREL(%rip)
|
movq %rax, memcpy@GOTPCREL(%rip)
|
||||||
|
leaq __strlen_sse2(%rip), %rax
|
||||||
|
movq %rax, strlen@GOTPCREL(%rip)
|
||||||
|
|
||||||
call _hurd_stack_setup
|
call _hurd_stack_setup
|
||||||
xorq %rdx, %rdx
|
xorq %rdx, %rdx
|
||||||
jmp _start1
|
jmp _start1
|
||||||
|
Loading…
Reference in New Issue
Block a user