parent
7216f17653
commit
b224c048b4
|
@ -656,7 +656,7 @@ void LinkerScript<ELFT>::assignAddresses(std::vector<PhdrEntry<ELFT>> &Phdrs) {
|
|||
if (!FirstPTLoad->Last)
|
||||
FirstPTLoad->Last = Out<ELFT>::ProgramHeaders;
|
||||
} else if (!FirstPTLoad->First) {
|
||||
// Sometimes the very first PT_LOAD segment can be empty.
|
||||
// Sometimes the very first PT_LOAD segment can be empty.
|
||||
// This happens if (all conditions met):
|
||||
// - Linker script is used
|
||||
// - First section in ELF image is not RO
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## section-alignment-notpow2.elf has section alignment
|
||||
## section-alignment-notpow2.elf has section alignment
|
||||
## 0xFFFFFFFF which is not a power of 2.
|
||||
# RUN: not ld.lld %p/Inputs/section-alignment-notpow2.elf -o %t2 2>&1 | \
|
||||
# RUN: FileCheck %s
|
||||
|
|
Loading…
Reference in New Issue