Samuel Thibault 3d3316b1de hurd: keep only required PLTs in ld.so
We need NO_RTLD_HIDDEN because of the need for PLT calls in ld.so.
See Roland's comment in
https://sourceware.org/bugzilla/show_bug.cgi?id=15605
"in the Hurd it's crucial that calls like __mmap be the libc ones
instead of the rtld-local ones after the bootstrap phase, when the
dynamic linker is being used for dlopen and the like."

We used to just avoid all hidden use in the rtld ; this commit switches to
keeping only those that should use PLT calls, i.e. essentially those defined in
sysdeps/mach/hurd/dl-sysdep.c:

__assert_fail
__assert_perror_fail
__*stat64
_exit

This fixes a few startup issues, notably the call to __tunable_get_val that is
made before PLTs are set up.
2020-11-11 02:36:22 +01:00
..
2020-04-27 10:34:52 -04:00
2016-10-28 22:40:16 -04:00
2018-03-25 00:48:01 +01:00
2020-08-04 22:17:00 -04:00
2017-04-07 07:45:53 -04:00
2020-08-04 22:58:58 -07:00
2020-07-21 07:33:50 +02:00
2017-11-22 22:21:10 +00:00
2019-05-02 11:42:51 +02:00
2019-10-09 17:48:41 -03:00
2020-07-21 07:34:50 +02:00
2019-11-06 09:20:52 -03:00