ports/devel/llvm/16/patches/patch-lld_ELF_Config_h

26 lines
842 B
Text
Raw Normal View History

2023-09-08 05:21:37 +00:00
Index: lld/ELF/Config.h
--- lld/ELF/Config.h.orig
+++ lld/ELF/Config.h
@@ -282,6 +282,7 @@ struct Config {
2023-08-16 22:26:55 +00:00
bool zInitfirst;
bool zInterpose;
bool zKeepTextSectionPrefix;
+ bool zNoBtCfi;
bool zNodefaultlib;
bool zNodelete;
bool zNodlopen;
2023-09-08 05:21:37 +00:00
@@ -312,8 +313,13 @@ struct Config {
2023-08-16 22:26:55 +00:00
ELFKind ekind = ELFNoneKind;
uint16_t emachine = llvm::ELF::EM_NONE;
2023-09-08 05:21:37 +00:00
std::optional<uint64_t> imageBase;
2023-08-16 22:26:55 +00:00
+ // 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;