This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] Place copy relocations in .dynbss when target is read-only


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.

Attachment: dynrelro.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]