[ELF] InX::BssRelRo should check section contents before marking relro
When a linker script is used with a pattern like { *(.bss .bss.*) } the InX::BssRelRo section will match against .bss.*. By matching on the name only, in the same way that .data.rel.ro works we prevent this from happening, but permit scripts that want to explicitly provide a .bss.rel.ro OutputSection. Differential Revision: https://reviews.llvm.org/D40735 llvm-svn: 319755
Loading
Please sign in to comment