I've been trying to compile a Fortran 77 program using g77 on YDL 3 on G4s and YDL 4 on G5. All of my source files compile fine into object files, but I get an error when linking to a library:
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/../../../../lib/crt1.o(.text+0x20): In function `_start':
: relocation truncated to fit: R_PPC_REL24 __libc_start_main@@GLIBC_2.0
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/../../../../lib/crti.o(.text+0x10): In function `call_gmon_start':
: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffff
ffffc
revisit.o(.text+0x2c): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_rsle
revisit.o(.text+0x44): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_lio
revisit.o(.text+0x48): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 e_rsle
revisit.o(.text+0x5c): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_rsne
revisit.o(.text+0xc0): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_wsfe
revisit.o(.text+0xd4): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_fio
revisit.o(.text+0xe8): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_fio
revisit.o(.text+0xec): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 e_wsfe
I have no problems when linking the same library to a smaller demo program, but the linker produces the errors shown above when linking to this large program.
I remember having this problem before on G3's running YDL 2 or 3, but I forgot what the fix is.
Please help!
Thanks!