What is R_X86_64_PC32?
Steve Kargl
sgk at troutmask.apl.washington.edu
Thu Jan 27 09:59:34 PST 2005
This simple fortran program:
program kk
implicit none
integer N
parameter (N=32768)
real input(N,N)
input(1,1) = 1.e0
end program kk
when compiled by either the system's f77 command or gfortran,
generates the following error:
troutmask:kargl[217] f77 -o df df.f
/usr/lib/crt1.o(.text+0x15): In function `_start':
: relocation truncated to fit: R_X86_64_PC32 environ
In libexec/rtld-elf/amd64/reloc.c, I find
case R_X86_64_PC32:
/*
* I don't think the dynamic linker should ever see this
* type of relocation. But the binutils-2.6 tools sometimes
* generate it.
*/
The machine has 12 GB of memory. My resource limits are
troutmask:sgk[219] limits
Resource limits (current):
cputime infinity secs
filesize infinity kB
datasize 8388608 kB
stacksize 131072 kB
coredumpsize infinity kB
memoryuse infinity kB
memorylocked infinity kB
maxprocesses 5547
openfiles 11095
sbsize infinity bytes
vmemoryuse infinity kB
and I built a kernel with
options MAXDSIZ=(8192UL*1024*1024)
options MAXSSIZ=(1024UL*1024*1024)
options DFLDSIZ=(1024UL*1024*1024)
Is this an indication that the stack isn't large enough?
--
Steve
More information about the freebsd-amd64
mailing list