[ELF] Set ctx.internalFile for PPC64 _savegpr[01]_{14..31} and _restgpr[01]_{14..31}. NFC

Ensure that every InputFile has a non-null file so that we enforce this
in the future.
This commit is contained in:
Fangrui Song
2024-03-19 18:21:20 -07:00
parent 6f31cf51df
commit 456c239d77

View File

@@ -286,7 +286,7 @@ static void writeSequence(MutableArrayRef<uint32_t> buf, const char *prefix,
// The full section content has the extent of [begin, end). We drop unused
// instructions and write [first,end).
auto *sec = make<InputSection>(
nullptr, SHF_ALLOC, SHT_PROGBITS, 4,
ctx.internalFile, SHF_ALLOC, SHT_PROGBITS, 4,
ArrayRef(reinterpret_cast<uint8_t *>(buf.data() + first),
4 * (buf.size() - first)),
".text");