Fix a bug for packed relocations.
authorRui Ueyama <ruiu@google.com>
Mon, 9 Jul 2018 23:54:24 +0000 (23:54 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 9 Jul 2018 23:54:24 +0000 (23:54 +0000)
commita9e169edffb161057accfdaa6e4d002e5f8c26e3
tree13136f2aaedf00121fd18b3256006f6f07c9100b
parenta34c65e845dc7f55a335cdede2033766eb73b66a
Fix a bug for packed relocations.

Previously, we didn't create multiple consecutive bitmaps.
Added a test to catch this bug too.

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

llvm-svn: 336620
lld/ELF/SyntheticSections.cpp
lld/test/ELF/pack-dyn-relocs2.s [new file with mode: 0644]