This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: x86_64: is there an option to always do RIP relative addressing for globals?
> I think you can get approximately what you want by using "#pragma GCC
> visibility push(protected)" at the start of some header file to give all
> symbols, including all external symbols, protected visibility. ÂThen
> compile with -fpic. ÂI don't know if that will cover all cases. ÂIt
> seems like kind of a special purpose requirement.
>
Awesome! That seems to do exactly what I want! Thanks!