================
@@ -189,18 +191,23 @@ uint32_t
SystemZAsmPrinter::AssociatedDataAreaTable::insert(const MCSymbol *Sym,
break;
}
+ // Language Environment DLL logic requires function descriptors, for
+ // imported functions, that are placed in the ADA to be 8 byte aligned.
+ if (SlotKind == SystemZII::MO_ADA_DIRECT_FUNC_DESC)
+ NextDisplacement = alignTo(NextDisplacement, 8);
uint32_t Displacement = NextDisplacement;
Displacements[std::make_pair(Sym, SlotKind)] = NextDisplacement;
NextDisplacement += Length;
- return Displacement;
+ return std::pair(Sym, Displacement);
----------------
amy-kwan wrote:
I've separated it out to another PR:
https://github.com/llvm/llvm-project/pull/174593
https://github.com/llvm/llvm-project/pull/171476
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits