From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4717 invoked from network); 6 Mar 2000 17:39:22 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Mar 2000 17:39:22 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA00773 for ; Mon, 6 Mar 2000 12:39:20 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 06 Mar 2000 11:44:35 -0600 Received: by paralleldata.com from paralleldata.com (24.15.240.182::mail daemon; unverified,SLMail V2.5); Mon, 06 Mar 2000 11:44:32 -0600 Sender: "Wsb" Message-ID: <38C3EDA0.60D77FE2@paralleldata.com> Date: Mon, 06 Mar 2000 11:40:48 -0600 From: "W Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Compiler/linker oddness? References: <200003061514.LAA22826@fury.bio.dfo.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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