Change the default of --apply-dynamic-relocs.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 5 Feb 2018 19:39:04 +0000 (19:39 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 5 Feb 2018 19:39:04 +0000 (19:39 +0000)
commit0e4df539fa2c10a2ee55a7ed4d54afc381d73ab6
treee66231dc72c91fac0b8a3365050b6e055c324e48
parentd6f7a65197a4c11f456d95144ae11ef7d330197c
Change the default of --apply-dynamic-relocs.

When using Elf_Rela every tool should use the addend in the
relocation.

We have --apply-dynamic-relocs to work around bugs in tools that don't
do that.

The default value of --apply-dynamic-relocs should be false to make
sure these bugs are more easily found in the future.

llvm-svn: 324264
lld/ELF/Driver.cpp
lld/test/ELF/dynamic-got-rela.s
lld/test/ELF/relocation-non-alloc.s