[gold commit] Place copy relocations in .dynbss when target is read-only
Cary Coutant
ccoutant@gmail.com
Wed Dec 28 04:45:00 GMT 2016
Piggy-backing on PR 20995...
2016-12-27 Cary Coutant <ccoutant@gmail.com>
gold/
PR ld/20995
* copy-relocs.cc (Copy_relocs::make_copy_reloc): Use .dynbss for
read-only data when linking with -z relro.
* copy-relocs.h (Copy_relocs::dynrelro_): New data member.
* testsuite/Makefile.am (copy_test_relro): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/copy_test_relro.cc: New source file.
* testsuite/copy_test_relro_1.cc: New source file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynrelro.patch
Type: application/octet-stream
Size: 7732 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20161228/42e118eb/attachment.obj>
More information about the Binutils
mailing list