Time to enable partial relro

Pedro Giffuni pfg at FreeBSD.org
Sat Aug 27 01:48:58 UTC 2016


For the record ...

On 08/26/16 20:10, Pedro Giffuni wrote:
>
>
> On 26/08/2016 19:00, Warner Losh wrote:
...

>> I think we should move forward, just want to make sure it doesn’t
>> break some arch completely before moving ahead. While lld is a goal,
>> the goal is also to have a ld.bdf installed for 12, iirc, as a fallback.
>
> And very right you are, this has all the chances of breaking MIPS*:
>
> "A configure option --enable-relro={yes|no} to decide
>  whether -z relro should be the default behaviour for
>  the linker in ELF based targets.  If this configure
>  option is not specified then relro will be enabled
>  automatically for all Linux based targets except FRV,
>  HPPA, IA64 and MIPS."
>
> _____
>
> I will update the patch to exclude MIPS (and MIPS64 JIC).
>


The new patch is here:

https://people.freebsd.org/~pfg/patches/partial-relro.diff

If we were ever to MFC this, we would have to add IA64 to the exclusion
list.

Pedro.


More information about the freebsd-toolchain mailing list