In the linkers, collect objects in section "openbsd.mutable" and place
authorderaadt <deraadt@openbsd.org>
Fri, 7 Oct 2022 15:04:51 +0000 (15:04 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 7 Oct 2022 15:04:51 +0000 (15:04 +0000)
commitbd249b5664da50f0178adea78250a7a0d8ea6566
tree674a8a2addff7d590bf0eec21df993fc68583548
parent0ef731a0e2359e03f68afd87177ea46b952ef4eb
In the linkers, collect objects in section "openbsd.mutable" and place
them into a page-aligned region in the bss, with the right markers for
kernel/ld.so to identify the region and skip making it immutable.
While here, fix readelf/objdump versions to show all of this.
ok miod kettenis
gnu/llvm/lld/ELF/ScriptParser.cpp
gnu/llvm/lld/ELF/Writer.cpp
gnu/llvm/llvm/include/llvm/BinaryFormat/ELF.h
gnu/usr.bin/binutils-2.17/bfd/elf.c
gnu/usr.bin/binutils-2.17/binutils/readelf.c
gnu/usr.bin/binutils-2.17/include/elf/common.h
gnu/usr.bin/binutils-2.17/ld/ldgram.y
gnu/usr.bin/binutils/bfd/elf.c
gnu/usr.bin/binutils/binutils/readelf.c
gnu/usr.bin/binutils/include/elf/common.h
gnu/usr.bin/binutils/ld/ldgram.y