Date: Thu, 27 Jan 2005 09:59:34 -0800 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: freebsd-amd64@freebsd.org Subject: What is R_X86_64_PC32? Message-ID: <20050127175934.GA44783@troutmask.apl.washington.edu>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050127175934.GA44783>
