[ELF] Fix functionality of merging similar strings.
authorShankar Easwaran <shankarke@gmail.com>
Mon, 20 Oct 2014 02:59:06 +0000 (02:59 +0000)
committerShankar Easwaran <shankarke@gmail.com>
Mon, 20 Oct 2014 02:59:06 +0000 (02:59 +0000)
commit6cfcb388b0c9aaf22ae7757a091fcec53465b6e7
tree2a1efe9d1272e2f2df0a8087001b79d4bb7392a3
parenteeec35ae1cce76d8f0d4fc35d231deebf2fa5f38
[ELF] Fix functionality of merging similar strings.

For PC relative accesses, negative addends were to be ignored. The linker was
not ignoring it and would fail with an assert. This fixes the issue and is able
to get Helloworld working.

llvm-svn: 220179
lld/lib/ReaderWriter/ELF/ELFFile.h
lld/test/elf/X86_64/mergesimilarstrings.test [new file with mode: 0644]