[PATCH] PR ld/20283: gold: Add a linker configure option --enable-relro

Cary Coutant ccoutant@gmail.com
Tue Jun 21 23:12:00 GMT 2016


>> Add a configure option --enable-relro to decide whether -z relro should
>> be enabled by default.  Enable it if --disable-relro isn't specified.
>>
>> OK for master?
>>
>> H.J.
>> ---
>>         PR ld/20283
>>         * NEWS: Mention --enable-relro.
>>         * configure.ac: Add --enable-relro.
>>         (DEFAULT_LD_Z_RELRO): New.  Set by --enable-relro and default
>>         to 1.
>>         * config.in: Regenerated.
>>         * configure: Likewise.
>>         * options.h (General_options::relro): Default to
>>         DEFAULT_LD_Z_RELRO.
>
> OK.

I should qualify that -- it's OK if it's OK for ld.

-cary



More information about the Binutils mailing list