Add testcase ld-elf/merge4
authorMichael Matz <matz@suse.de>
Wed, 12 Oct 2022 15:29:43 +0000 (17:29 +0200)
committerMichael Matz <matz@suse.de>
Fri, 20 Jan 2023 13:58:04 +0000 (14:58 +0100)
commitec15b12d0684b41f67b56623f6e9b5024bf08905
tree1fb4110367f93c99af7e05f0bb4c1ad5f955fbb7
parent26ec71f5128af2da9bf859321f388f76ad04dfe0
Add testcase ld-elf/merge4

to check a situation that once failed with the new section merging
when it mishandled offsets pointing into alignment padding in mergable
string sections (i.e. pointing to zeros).  It made bootstrap.exp fail
but that depends on many factors to actually go wrong so this is a more
explicit variant of it.
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/merge4.out [new file with mode: 0644]
ld/testsuite/ld-elf/merge4a.c [new file with mode: 0644]
ld/testsuite/ld-elf/merge4b.s [new file with mode: 0644]