Add minimal support for GNU_PROPERTY
From "Lorenz (xha)" (me(at)xha.li): teach binutils how to assembleendbr{64,32}"sure" dv@ deraadt@
Add basic support for R_386_GOT32XRepairs ld.bfd operations on i386: since the switch to llvm-16 clangemits such relocations (eg one is present in /usr/lib/crtbegin.o).This unbreaks the build of
Add basic support for R_386_GOT32XRepairs ld.bfd operations on i386: since the switch to llvm-16 clangemits such relocations (eg one is present in /usr/lib/crtbegin.o).This unbreaks the build of ports/lang/fpc.Help and tests from tb@, ok tb@ kettenis@
show more ...
Collect .openbsd.syscalls sections into a new PT_OPENBSD_SYSCALLS segment.This will be used soon to pin system calls to designated call sites.ok deraadt@
teach the BFD tools how to handle NOBTCFI, quite similar to WXNEEDEDok kettenis
Fix erroneous comment for the PT_OPENBSD_MUTABLE definition.
Implement --execute-only (and turn --no-execute-only from a no-op into anoptions that does the opposite).Note that this option is likely to be ineffective without changes to thelinker scripts. A
Implement --execute-only (and turn --no-execute-only from a no-op into anoptions that does the opposite).Note that this option is likely to be ineffective without changes to thelinker scripts. A change that adjusts the hppa linker scripts will followshortly. Other architectures will need some work.ok deraadt@
Implement DT_MIPS_RLD_MAP_REL support and add such an entry to PIEexecutables.ok deraadt@
In the linkers, collect objects in section "openbsd.mutable" and placethem into a page-aligned region in the bss, with the right markers forkernel/ld.so to identify the region and skip making it im
In the linkers, collect objects in section "openbsd.mutable" and placethem into a page-aligned region in the bss, with the right markers forkernel/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
Sync DF_1_* flag definitions with llvm 13, including support inreadelf -d for displaying them.(lld 13 sets DF_1_PIE on most our binaries)ok jsg@
Teach binutils enough about RELR relocations to not break them and forreadelf to display them in a way compatible with llvm-readelf, includingthe --raw-relr debugging optionok kettenis@
recognise a small number of riscv relocations in readelfok kettenis@
Add a few missing elocations.ok jasper@
Various fixes to make this compile with clang on powerpc.ok visa@
Ignore LLVM 7's LINKER_OPTIONS section.ok patrick@, naddy@
Ignore LLVM 7's ADDRSIG section.Problem reported by bluhm@ok kettenis@
Core files with >65535 sections have to use PN_XNUM and a section headerto pass the real count, with a minimal .shstrtab segment for consistency.Also, add support for PN_XNUM to readelf.problem r
Core files with >65535 sections have to use PN_XNUM and a section headerto pass the real count, with a minimal .shstrtab segment for consistency.Also, add support for PN_XNUM to readelf.problem reported and testing by claudio@ok kettenis@
Merge post-2.17 but pre-GPLv3 diffs that add support for DT_GNU_HASHto ld and improve the readelf support: https://sourceware.org/ml/binutils/2006-07/msg00129.html https://sourceware.org/ml/binuti
Merge post-2.17 but pre-GPLv3 diffs that add support for DT_GNU_HASHto ld and improve the readelf support: https://sourceware.org/ml/binutils/2006-07/msg00129.html https://sourceware.org/ml/binutils/2006-07/msg00181.htmlDisable the ld support on mips64, as its ABI requires a symbolordering that conflicts with the requirements of DT_GNU_HASH.Tested on macppc, alpha, and sparc64 to verify operation with allthree ELF word size combostesting help miod@ok kettenis@
Teach binutils how to assemble INVPCID and how to disassembleINV{EPT,VPID,PCID}ok mlarkin@
Make our ancient binutils recognize .gnu.hash sections such that our toolsdon't barf on binaries created by ld.lld(1). From FreeBSD.ok millert@, deraadt@, guenther@
R_AARCH64_NONE should be zero, not 256. The latter was a deprecatedassignment and isn't used by clang/lld.ok jsg@
Teach readelf the arm64 dynamic relocation we use, as well as them88k-specific dynamic tagsok deraadt@ jsg@
Fix handling of the SVM instructions such that they accept a register asan operand instead of a memory address. This matches what more recentbinutils versions do and allows us to write inline asse
Fix handling of the SVM instructions such that they accept a register asan operand instead of a memory address. This matches what more recentbinutils versions do and allows us to write inline assembly that's acceptedby both clang and gas.ok mlarkin@, visa@
Stub out aarch64 support and avoid building gas and ld on this architecture.ok mpi@, patrick@
Teach readelf and objdump about the PT_OPENBSD_BOOTDATA section value.Teach ld to access that and PT_GNU_RELRO in linker scripts.ok deraadt@
12