[llvm] [SystemZ] Handle indirect symbols (PR #180815)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 09:16:26 PST 2026
================
@@ -358,10 +359,11 @@ void GOFFWriter::defineLabel(const MCSymbolGOFF &Symbol) {
}
void GOFFWriter::defineExtern(const MCSymbolGOFF &Symbol) {
- GOFFSymbol ER(Symbol.getName(), Symbol.getIndex(), RootSD->getOrdinal(),
- GOFF::ERAttr{Symbol.getCodeData(), Symbol.getBindingStrength(),
- Symbol.getLinkage(), GOFF::ESD_AMODE_64,
- Symbol.getBindingScope()});
+ GOFFSymbol ER(Symbol.getNameInObjectFile(), Symbol.getIndex(),
+ RootSD->getOrdinal(),
+ GOFF::ERAttr{Symbol.isIndirect(), Symbol.getCodeData(),
+ Symbol.getBindingStrength(), Symbol.getLinkage(),
+ GOFF::ESD_AMODE_64, Symbol.getBindingScope()});
----------------
uweigand wrote:
I guess we should also use the `ExternalName` for ED section labels? My understanding is that you can use HLASM ALIAS statements for those too. In fact, you can use HLASM ALIAS also for CSECT and the like, so should *sections* also carry an `ExternalName`?
https://github.com/llvm/llvm-project/pull/180815
More information about the llvm-commits
mailing list