We shouldn't report an error for R_*_NONE relocs since we're emitting them when writing relocations to discarded sections.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/Relocations.cpp | ||
---|---|---|
323 ↗ | (On Diff #89431) | How about this? |
ELF/Relocations.cpp | ||
---|---|---|
323 ↗ | (On Diff #89431) | I tried that but it's being invoked from adjustExpr in scanRelocs before we ignore the R_NONE reloc (the change below). I could move that check before the adjustExpr call if you prefer? |
ELF/Relocations.cpp | ||
---|---|---|
323 ↗ | (On Diff #89431) | How about do continue after RelExpr Expr = Target->getRelExpr(Type, Body); in scanRelocs? |
ELF/Relocations.cpp | ||
---|---|---|
323 ↗ | (On Diff #89431) | So now you can revert the change to this function? |