================ @@ -1964,6 +1979,26 @@ void elf::postScanRelocations(Ctx &ctx) { for (ELFFileBase *file : ctx.objectFiles) for (Symbol *sym : file->getLocalSymbols()) fn(*sym); + + // Now that we have checked all ifunc symbols for demotion to regular function + // symbols, move IRELATIVE relocations to the right place: + // - Relocations for non-demoted ifuncs are added to .rela.dyn + // - Relocations for demoted ifuncs are turned into RELATIVE relocations + // or static relocations in PDEs ---------------- pcc wrote:
Done https://github.com/llvm/llvm-project/pull/133531 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits