]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: Avoid overzealous shared objects constraints
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 31 Dec 2021 17:17:40 +0000 (18:17 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 31 Dec 2021 17:22:46 +0000 (18:22 +0100)
commit8c0727af63198661c0ae3641a9d66609021754a7
treed083dd8ed37aa5eab36aebaf64447fd381ab4a1f
parent1f17da01e64efba97c0d39e2b3d01c8034b6db5a
hurd: Avoid overzealous shared objects constraints

407765e9f24f ("hurd: Fix ELF_MACHINE_USER_ADDRESS_MASK value") switched
ELF_MACHINE_USER_ADDRESS_MASK from 0xf8000000UL to 0xf0000000UL to let
libraries etc. get loaded at 0x08000000. But
ELF_MACHINE_USER_ADDRESS_MASK is actually only meaningful for the main
program anyway, so keep it at 0xf8000000UL to prevent the program loader
from putting ld.so beyond 0x08000000. And conversely, drop the use of
ELF_MACHINE_USER_ADDRESS_MASK for shared objects, which don't need any
constraints since the program will have already be loaded by then.
sysdeps/i386/dl-machine.h
sysdeps/mach/hurd/dl-sysdep.c