We shouldn't report an error for R_*_NONE relocs since we're emitting them when writing relocations to discarded sections.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/Relocations.cpp | ||
---|---|---|
323 | How about this? |
ELF/Relocations.cpp | ||
---|---|---|
323 | 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 | How about do continue after RelExpr Expr = Target->getRelExpr(Type, Body); in scanRelocs? |
ELF/Relocations.cpp | ||
---|---|---|
323 | So now you can revert the change to this function? |
nit: no else after continue/return/break/etc.