diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-10-07 19:03:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-10-07 19:03:51 +0200 |
commit | 921abe47299255a6480456c98fbb53bdc5db92a2 (patch) | |
tree | e8201c2596a51eacfadcad4f030373fba6df2fad /sysdeps/unix/sysv/linux/riscv/ldsodefs.h | |
parent | 0caab6638e22a301e8aa0b35f790b15aaf0791d9 (diff) | |
download | glibc-921abe47299255a6480456c98fbb53bdc5db92a2.tar.gz glibc-921abe47299255a6480456c98fbb53bdc5db92a2.tar.xz glibc-921abe47299255a6480456c98fbb53bdc5db92a2.zip |
riscv: Remove support for variable page sizes
_dl_var_init is used to patch the read-only data section after relocation. Several architectures use this to update GLRO(page_size) with the correct value for the static dlopen case, where _rtld_global_ro has not been initialized by the dynamic loader. RISC-V does not need this. The RISC-V Instruction Set Manual, Volume II: Privileged Architecture, Document Version 20190608-Priv-MSU-Ratified says this: After much deliberation, we have settled on a conventional page size of 4 KiB for both RV32 and RV64. We expect this decision to ease the porting of low-level runtime software and device drivers. The TLB reach problem is ameliorated by transparent superpage support in modern operating systems [2]. Additionally, multi-level TLB hierarchies are quite inexpensive relative to the multi-level cache hierarchies whose address space they map. [2] Juan Navarro, Sitaram Iyer, Peter Druschel, and Alan Cox. Practical, transparent operating system support for superpages. SIGOPS Oper. Syst. Rev., 36(SI):89–104, December 2002. This means that the initialization of _rtld_global_ro._dl_page_size in elf/rtld.c with EXEC_PAGESIZE is sufficient for RISC-V.
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/ldsodefs.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/riscv/ldsodefs.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/ldsodefs.h b/sysdeps/unix/sysv/linux/riscv/ldsodefs.h deleted file mode 100644 index a46e676752..0000000000 --- a/sysdeps/unix/sysv/linux/riscv/ldsodefs.h +++ /dev/null @@ -1,32 +0,0 @@ -/* RISC-V dynamic linker data structures for loaded ELF shared objects. - Copyright (C) 2001-2019 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/>. */ - -#ifndef _LDSODEFS_H - -/* Get the real definitions. */ -#include_next <ldsodefs.h> - -/* Now define our stuff. */ - -/* We need special support to initialize DSO loaded for statically linked - binaries. */ -extern void _dl_static_init (struct link_map *map); -#undef DL_STATIC_INIT -#define DL_STATIC_INIT(map) _dl_static_init (map) - -#endif /* ldsodefs.h */ |