[Bug c/81077] linker constants are randomized

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 12 21:30:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81077

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-06-12
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fPIE is default for the compiler you are using so they are definitely going to
be randomized.

Use -fno-pie -no-pie when compiling if you want non-random virtual addresses.


More information about the Gcc-bugs mailing list