GCC 6.2.0 : What does the undocumented -r option ?

Marc Glisse marc.glisse@inria.fr
Mon Nov 7 19:47:00 GMT 2016


On Mon, 7 Nov 2016, Emmanuel Charpentier wrote:

> The Sage project (http://www.sagemath.org) has recently hit an
> interesting snag : its developers using Debian testing began to
> encounter difficulties compiling the flint package (http://groups.googl
> e.co.uk/group/flint-devel) with gcc 2.6.0.
>
> One of us found (see https://groups.google.com/d/msg/sage-devel/TduebNo
> ZuBE/sEULolL0BQAJ) that this was bound to a conflict between the -pie
> option (now default) and an undocumented -r option.
>
> We would like to know what is this -r option, what it does and why it
> is undocumented.

(the mailing list you are looking for is gcc-help@gcc.gnu.org)

As can be seen in the first message of the conversation you link to
"/usr/bin/ld: -r and -pie may not be used together"

The option -r is passed to ld, so you have to look for it in ld's manual 
where it is clearly documented.

(that hardening stuff is such a pain...)

-- 
Marc Glisse



More information about the Gcc mailing list