This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 6.2.0 : What does the undocumented -r option ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]