ports/devel/llvm/17/patches/patch-lld_ELF_Writer_h

13 lines
439 B
Text
Raw Permalink Normal View History

Index: lld/ELF/Writer.h
--- lld/ELF/Writer.h.orig
+++ lld/ELF/Writer.h
@@ -25,7 +25,7 @@ template <class ELFT> void writeResult();
// placed in it.
struct PhdrEntry {
PhdrEntry(unsigned type, unsigned flags)
- : p_align(type == llvm::ELF::PT_LOAD ? config->maxPageSize : 0),
+ : p_align(type == llvm::ELF::PT_LOAD ? config->textAlignPageSize : 0),
p_type(type), p_flags(flags) {}
void add(OutputSection *sec);