[lld] [LLD][COFF] Add support for ARM64EC auxiliary IAT (PR #108304)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 12 08:39:20 PDT 2024
================
@@ -142,6 +142,30 @@ class NullChunk : public NonSectionChunk {
size_t size;
};
+// A chunk for ARM64EC auxiliary IAT.
+class AuxImportChunk : public NonSectionChunk {
+public:
+ explicit AuxImportChunk(ImportFile *file) : file(file) {
+ setAlignment(sizeof(uint64_t));
+ }
+ size_t getSize() const override { return sizeof(uint64_t); }
+
+ void writeTo(uint8_t *buf) const override {
+ uint64_t impchkVA = 0;
+ if (file->impchkThunk)
+ impchkVA = file->impchkThunk->getRVA() + file->ctx.config.imageBase;
----------------
cjacek wrote:
Yes, my guess is that it was just more convenient to use regular base relocations.
https://github.com/llvm/llvm-project/pull/108304
More information about the llvm-commits
mailing list