delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/03/28/15:39:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1/vv7FrF4nvc6+0+owXIZ911wT/hCVeOqxiVd04YO
YeTmYEYzqYLu1w
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp AT delorie DOT com
Subject: Linker problem (/beta/v2gnu/bnu217br1.zip)
Date: Fri, 28 Mar 2008 21:25:20 +0100
User-Agent: KMail/1.9.5
MIME-Version: 1.0
Message-Id: <200803282125.23870.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0

Unfortunatly I have not seen this problem before, but with bnu217br1.zip I get
the following error message when I compile texinfo:

gcc  -g -O2   -o ginfo.exe dir.o display.o dribble.o echo-area.o filesys.o footnotes.o gc.o indices.o info-utils.o info.o infodoc.o infomap.o m-x.o man.o nodemenu.o nodes.o search.o session.o signals.o terminal.o tilde.o variables.o window.o doc.o ../lib/libtxi.a ../gnulib/lib/libgnu.a   
c:/djgpp/bin/ld.exe: section .ctors [0001a978 -> 0001a97b] overlaps section .text [00001a60 -> 000467ff]
collect2: ld returned 1 exit status
make.exe[3]: *** [ginfo.exe] Error 1

I have compared the linker scripts generated by me today with the ones
distributed with /beta/v2gnu/bnu217b.zip.  They differe.  This surprissed me
very much because I assumed that the binaries can be produced as described by
the readme file in the source package.  Even worse, if I substitute the new linker
scripts with the old ones the same failure happens.
I am not familiar enough with linker scripts and binutils so some help would
be seriously appreciated.

Regards,
Juan M. Guerrero

The diffs below shows the difference between old and new linker scripts:

diff -aru1 old/llib/ldscripts/i386go32.x new/lib/ldscripts/i386go32.x
--- old/llib/ldscripts/i386go32.x	2007-03-16 15:51:14 +0000
+++ new/lib/ldscripts/i386go32.x	2008-03-28 14:20:50 +0000
@@ -19,3 +19,2 @@
     *(.ctor)
-    *(.ctors)
     djgpp_last_ctor = . ;
@@ -24,7 +23,3 @@
     *(.dtor)
-    *(.dtors)
     djgpp_last_dtor = . ;
-    __environ = . ;
-    PROVIDE(_environ = .) ;
-    LONG(0) ;
     *(.data)
diff -aru1 old/llib/ldscripts/i386go32.xbn new/lib/ldscripts/i386go32.xbn
--- old/llib/ldscripts/i386go32.xbn	2007-03-16 15:51:14 +0000
+++ new/lib/ldscripts/i386go32.xbn	2008-03-28 14:20:50 +0000
@@ -19,3 +19,2 @@
     *(.ctor)
-    *(.ctors)
     djgpp_last_ctor = . ;
@@ -24,7 +23,3 @@
     *(.dtor)
-    *(.dtors)
     djgpp_last_dtor = . ;
-    __environ = . ;
-    PROVIDE(_environ = .) ;
-    LONG(0) ;
     *(.data)
diff -aru1 old/llib/ldscripts/i386go32.xn new/lib/ldscripts/i386go32.xn
--- old/llib/ldscripts/i386go32.xn	2007-03-16 15:51:14 +0000
+++ new/lib/ldscripts/i386go32.xn	2008-03-28 14:20:50 +0000
@@ -19,3 +19,2 @@
     *(.ctor)
-    *(.ctors)
     djgpp_last_ctor = . ;
@@ -24,7 +23,3 @@
     *(.dtor)
-    *(.dtors)
     djgpp_last_dtor = . ;
-    __environ = . ;
-    PROVIDE(_environ = .) ;
-    LONG(0) ;
     *(.data)
diff -aru1 old/llib/ldscripts/i386go32.xr new/lib/ldscripts/i386go32.xr
--- old/llib/ldscripts/i386go32.xr	2007-03-16 15:51:14 +0000
+++ new/lib/ldscripts/i386go32.xr	2008-03-28 14:20:50 +0000
@@ -11,5 +11,2 @@
   .data  : {
-    __environ = . ;
-    PROVIDE(_environ = .) ;
-    LONG(0) ;
     *(.data)
diff -aru1 old/llib/ldscripts/i386go32.xu new/lib/ldscripts/i386go32.xu
--- old/llib/ldscripts/i386go32.xu	2007-03-16 15:51:14 +0000
+++ new/lib/ldscripts/i386go32.xu	2008-03-28 14:20:50 +0000
@@ -11,5 +11,2 @@
   .data  : {
-    __environ = . ;
-    PROVIDE(_environ = .) ;
-    LONG(0) ;
     *(.data)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019