Don't merge sections with differing MASKPROC or MASKOS flags
authorAlan Modra <amodra@gmail.com>
Tue, 10 Mar 2020 23:34:53 +0000 (10:04 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Mar 2020 04:30:44 +0000 (15:00 +1030)
commit1db6f990303ab6c45909f8e133641ef6c24a04d2
treed0351e34b9b423d3f200d44b4549a9f46de23ea4
parent1c33af7764d9f4eabc02e0f6f6df99917fbce0a6
Don't merge sections with differing MASKPROC or MASKOS flags

Not just SHF_EXCLUDE but any of these flags ought to prevent merging
of sections for ld -r.

* ldelf.c (elf_orphan_compatible): Return false when two sections
have differing SHF_MASKPROC or SHF_MASKOS flags.
ld/ChangeLog
ld/ldelf.c