This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold commit] Place copy relocations in .dynbss when target is read-only
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 27 Dec 2016 20:58:03 -0800
- Subject: Re: [gold commit] Place copy relocations in .dynbss when target is read-only
- Authentication-results: sourceware.org; auth=none
- References: <CAJimCsGZEaBDEn19aAJVumw+sgg6caTaubOCWz+sa3ZhNdLhRQ@mail.gmail.com>
> 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.
Also backported to binutils-2_28-branch.
-cary