------- Comment #4 from ddenisen at altera dot com 2008-03-07 20:11 ------- I am still learning about linking and loading and I can't guess why non-PIC DSOs would work on x86 but not on x86_64. Could you please explain briefly.
This is all very useful information that I couldn't find anywhere else (I guess I could always look at gcc code :) ). Can the following be added to documentation? (for -fpic): PIC is required for DSOs on x86_64 platform but not for x86. (for -fpie): One example of using -PIE is security: text section of position-independent executable can be located at different addresses for each invocation. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35500