[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "relocation truncated to fit" errors
From: |
Nick Clifton |
Subject: |
Re: "relocation truncated to fit" errors |
Date: |
Wed, 18 Oct 2006 15:40:44 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060911) |
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