paschalis-mpeis wrote: It looks like the issue #100096 is specific to BFD? With GOLD, AArch64MCCodeEmitter crashes with: > did not expect relocated expression Maybe that could be handled here as well? LLD seems to work fine. https://github.com/llvm/llvm-project/pull/100801