Fix incremental linking with rodata merge sections.
authorCary Coutant <ccoutant@gmail.com>
Sun, 13 Dec 2020 23:19:41 +0000 (15:19 -0800)
committerCary Coutant <ccoutant@gmail.com>
Sun, 13 Dec 2020 23:27:25 +0000 (15:27 -0800)
commitf12650bff1a591357c26e0ef6d7be0323f76fdb8
treed0f669dfdd702ca0ccc517be90f55b1d5464cb26
parent4cf2ad720078a9f490dd5b5bc8893a926479196e
Fix incremental linking with rodata merge sections.

When processing the incremental update, incoming .rodata merge sections
do not match the corresponding section in the base file, because the
SHF_MERGE flag had not been masked out of the latter.

gold/
PR gold/24123
* layout.cc (Layout::init_fixed_output_section): Mask out flags that
should be ignored when matching sections.
gold/ChangeLog
gold/layout.cc