https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63304
David Abdurachmanov <david.abdurachmanov at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.abdurachmanov at gmail dot c | |om --- Comment #11 from David Abdurachmanov <david.abdurachmanov at gmail dot com> --- I believe, I hit this issue with OpenLoops package on AArch64, while it works fine on x86_64. It shows up on 3 of Fortran files: scons: *** [process_obj/pplljjj/loop_pplljjj_eexddxggg_1_qp.os] Error 1 scons: *** [process_obj/pplljjj/loop_pplljjj_eexuuxggg_1_qp.os] Error 1 scons: *** [process_obj/pplljjj/loop_pplljjj_eexbbxggg_1_qp.os] Error 1 I get "Error: pc-relative load offset out of range" 864 times. Tested with GCC 4.9.1 and binutils 2.24. I also looked into f9edeb70961d404caac5a849b0783c53228ddf62 / 213078, with it applied on top it gets worse, i.e. more files are affected. From 864 it increases to 1392 errors. This particular library (pplljjj) is 158MB on x86_64. Most of it (153MB) belongs to .text section. The code must be compiled with -O0 otherwise machines have hard time handling it: gfortran: internal compiler error: Killed (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. @Andrew, I am happy to test your patches if necessary.