Fangrui Song f3a3b93f54 [ELF] -r: fix R_*_NONE to section symbols on Elf*_Rel targets
On Elf*_Rel targets, for a relocation to a section symbol, an R_ABS is
added which will be used by relocateOne() to compute the implicit
addend.

Addends of R_*_NONE should be ignored, so don't emit an R_ABS.

This fixes crashes on X86 and ARM because their relocateOne() do not
handle R_*_NONE.

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D62052

llvm-svn: 361036
2019-05-17 14:11:03 +00:00
..
2019-04-23 02:42:06 +00:00
2019-04-23 02:42:06 +00:00
2019-04-17 08:00:46 +00:00
2019-04-23 02:42:06 +00:00
2019-04-23 02:42:06 +00:00
2019-04-23 02:42:06 +00:00
2019-05-16 03:29:03 +00:00
2019-05-17 12:48:53 +00:00

See docs/NewLLD.rst