hurd: Also make it possible to call strlen very early
authorSergey Bugaev <bugaevc@gmail.com>
Wed, 17 May 2023 19:14:35 +0000 (22:14 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 17 May 2023 21:03:23 +0000 (23:03 +0200)
commitc93ee967cd688bc6d43c795b48e988075655a67f
tree01db06495111efddd1aa5deebdfb624f93a33e39
parent70fd6b3b230f58782a196b1075513a24f2376077
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>
sysdeps/mach/hurd/x86_64/static-start.S