Hi Huliyar,

I am using a 64-bit AMD apteron cluster with 8 GB RAM (RHEL platform). I face "relocation overflow" and "relocation truncated to fit errors" when I compile big fortran 77 codes using f77/g77

Can you please tell me what options I can use while compiling thse kind of codes.

This is really a g77 question, since the problem is that you are generating object files that are just too big. Thus you might like to try asking this question on their mailing list.

Have you tried using -Os to optimize for code size rather than code speed ?

Have you tried using -ffunction-sections and --fdata-sections switches ? (I do not know if g77 supports them). You would need to use the --gc-sections linker command line switch to make this feature work.

Have you tried "-fshort-enums" ?

Are you using the latest versions of g77, the assembler and the linker ?

Are you compiling for an AMD64 target and not just a generic x86 ?

Cheers
  Nick


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to