[lld][ELF][test] Expand testing of symbols in mergeable sections
authorJames Henderson <james.henderson@sony.com>
Tue, 25 Aug 2020 14:54:34 +0000 (15:54 +0100)
committerJames Henderson <james.henderson@sony.com>
Thu, 27 Aug 2020 09:38:42 +0000 (10:38 +0100)
commitd2385f6d2f1bea4e4913ae3bc3948590e8d9f6c3
tree7f09bace1c4afb4009d0e92f5476a0978e6a82ba
parent5ba4d0365b36de440d82b4672ccd41a5a7dd4592
[lld][ELF][test] Expand testing of symbols in mergeable sections

Whilst reviewing some internal testing, I noticed a couple of holes in
coverage of mergeable sections containing symbols. This patch addresses
these holes:
1) Show that mid-piece symbols have their values updated properly when
   pieces are merged.
2) Show the behaviour of symbols in mergeable pieces when --gc-sections
   is enabled.

Reviewed by: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D86543
lld/test/ELF/merge-sym-gc.s [new file with mode: 0644]
lld/test/ELF/merge-sym.s