SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
devel/llvm/patches/patch-tools_lld_ELF_Config_h
Normal file
29
devel/llvm/patches/patch-tools_lld_ELF_Config_h
Normal file
|
@ -0,0 +1,29 @@
|
|||
- XXX no comment
|
||||
- Implement support for PT_OPENBSD_NOBTCFI in lld(1). This can be set using
|
||||
the -z nobtcfi option.
|
||||
|
||||
Index: tools/lld/ELF/Config.h
|
||||
--- tools/lld/ELF/Config.h.orig
|
||||
+++ tools/lld/ELF/Config.h
|
||||
@@ -236,6 +236,7 @@ struct Configuration {
|
||||
bool zInitfirst;
|
||||
bool zInterpose;
|
||||
bool zKeepTextSectionPrefix;
|
||||
+ bool zNoBtCfi;
|
||||
bool zNodefaultlib;
|
||||
bool zNodelete;
|
||||
bool zNodlopen;
|
||||
@@ -266,8 +267,13 @@ struct Configuration {
|
||||
ELFKind ekind = ELFNoneKind;
|
||||
uint16_t emachine = llvm::ELF::EM_NONE;
|
||||
llvm::Optional<uint64_t> imageBase;
|
||||
+ // commonPageSize and maxPageSize are influenced by nmagic or omagic
|
||||
+ // so may be set to 1 if either of those options is given.
|
||||
uint64_t commonPageSize;
|
||||
uint64_t maxPageSize;
|
||||
+ // textAlignPageSize is the target max page size for the purpose
|
||||
+ // of aligning text sections, which may be unaligned if given nmagic
|
||||
+ uint64_t textAlignPageSize;
|
||||
uint64_t mipsGotSize;
|
||||
uint64_t zStackSize;
|
||||
unsigned ltoPartitions;
|
Loading…
Add table
Add a link
Reference in a new issue