From: "W Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Compiler/linker oddness?
Date: Mon, 06 Mar 2000 11:40:48 -0600 [thread overview]
Message-ID: <38C3EDA0.60D77FE2@paralleldata.com> (raw)
In-Reply-To: 200003061514.LAA22826@fury.bio.dfo.ca
pchapman@fury.bio.dfo.ca wrote:
>
> On 2 Mar, To: axp-list@redhat.com wrote:
> > Hi,
>
> ...
>
> Replying to my own message here. I thought it might be a linker
> problem, so I built binutils-2.9.5.0.29, whose linker produces this
> (word wrapped for your convenience):
>
> -----
>
> ccc main00.o plot01.o plot02.o palette.o method01.o method02.o sample01.o
> sample02.o sample03.o sample04.o startup.o main.o perf.o interactif.o io.o
> scalar01.o scalar02.o vector.o mesh01.o mesh02.o mesh03.o trigrid01.o
> trigrid02.o trigrid03.o points.o node01.o node02.o ef.o bathy01.o bathy02.o
> axes.o polygones.o animation.o extraction01.o extraction02.o make.o
> filtre.o coast.o buffer.o SHOM.o continuity.o scan.o geo.o stations.o cefmo.o
> script.o analysis03.o analysis01.o analysis02.o analysis04.o functions.o
> GridB01.o GridB02.o Criterion.o Export.o Info.o Legend.o ScanInfo.o Model.o
> Title.o Image.o xviris.o xvgifwr.o xvtiffwr.o xvgif.o x_main01.o x_main02.o
> x_main03.o xmenu_00.o xmenu_01.o xmenu_02.o xmenu_03.o xmenu_04.o xmenu_05.o
> xmenu_06.o xmenu_07.o xmenu_08.o xmenu_09.o xmenu_10.o xmenu_11.o xmenu_12.o
> xmenu_Z.o x_mouse.o xmenu_13.o xmenu_14.o xmenu_3333.o xvmisc.o xv24to8.o
> logo.o ScanToNode.o Extract.o x_pref01.o x_pref02.o x_pref03.o x_pref04.o
> x_pref05.o x_pref06.o x_view.o xscan.o xscanw.o x_TextBox.o
> -L/home/pchapman/Genesis-4.0/lib -L/usr/local/LessTif/Motif1.2/lib
> -L/usr/X11/lib -lxkernel -lkernel -lXrot -lpixB -llinpack -lfftpack -llinpack
> -ltiff -lXm -lXt -lX11 -lm -lots -lFutil -lUfor -lfor -lc -o
> /home/pchapman/Genesis-4.0/xscan/exe/xscan.exe
>
> /home/pchapman/newbinutils/bin/ld:
> /home/pchapman/Genesis-4.0/xscan/exe/xscan.exe: Not enough room
> for program headers (allocated 6, need 7)
>
> /home/pchapman/newbinutils/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
>
> -----
>
> Is this a bug in the linker? Smaller programs link without problems.
> Again, I'm using RH 6.1, with the released versions of ccc and fort. I
> have also tried gcc for the C parts, with the same results. The
> Fortran parts require Fortran 90, so I can't test with g77.
>
Looks like you exceeded ld's guess at how many program headers
your code would need. Do a "info ld", go to the index, and look
at the ELF program header section and it talks about PHDRS and how
to change them. Must be an unusual piece of code.
Wes
next prev parent reply other threads:[~2000-03-06 17:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-02 15:58 Compiler/linker oddness? pchapman
2000-03-06 15:14 ` pchapman
2000-03-06 17:40 ` W Bauske [this message]
2000-03-07 16:24 ` pchapman
2000-03-08 2:39 ` Richard Henderson
2000-03-08 20:28 ` W Bauske
2000-03-09 17:38 ` Richard Henderson
2000-03-08 21:15 ` linker works [Was: Re: Compiler/linker oddness?] Andrei A. Dergatchev
2000-03-10 2:47 ` Richard Henderson
2000-03-11 3:05 ` Jeffrey Sturm
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox