This is the mail archive of the
mailing list for the GCC project.
Re: GCC 6.2.0 : What does the undocumented -r option ?
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: emm dot charpentier at free dot fr, gcc at gcc dot gnu dot org
- Date: Mon, 7 Nov 2016 20:47:27 +0100 (CET)
- Subject: Re: GCC 6.2.0 : What does the undocumented -r option ?
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com>
- Reply-to: gcc at gcc dot gnu dot org
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
(the mailing list you are looking for is firstname.lastname@example.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...)