diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-04-24 00:55:26 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-24 22:48:35 +0200 |
commit | c02b26455b3c9d33c8a94e56eed1958d7f751b72 (patch) | |
tree | cef6d7d11c961ab5ff7e300009b23501c23d818a /sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c | |
parent | 35b7bf2fe003d6dbd5726cdf69f3c5d8179590e5 (diff) | |
download | glibc-c02b26455b3c9d33c8a94e56eed1958d7f751b72.tar.gz glibc-c02b26455b3c9d33c8a94e56eed1958d7f751b72.tar.xz glibc-c02b26455b3c9d33c8a94e56eed1958d7f751b72.zip |
hurd: Implement prefer_map_32bit_exec tunable
This makes the prefer_map_32bit_exec tunable no longer Linux-specific. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230423215526.346009-4-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c b/sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c deleted file mode 100644 index abc396589e..0000000000 --- a/sysdeps/unix/sysv/linux/x86_64/64/tst-map-32bit-1a.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Check that LD_PREFER_MAP_32BIT_EXEC works in PDE and shared library. - Copyright (C) 2023 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <https://www.gnu.org/licenses/>. */ - -#include <stdio.h> -#include <stdint.h> -#include <support/check.h> - -extern void dso_check_map_32bit (void); - -static int -do_test (void) -{ - printf ("do_test: %p\n", do_test); - TEST_VERIFY ((uintptr_t) do_test < 0xffffffffUL); - dso_check_map_32bit (); - return 0; -} - -#include <support/test-driver.c> |