bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15477] New: gld does not understand mapfiles correctly


From: joerg.schilling at fokus dot fraunhofer.de
Subject: [Bug ld/15477] New: gld does not understand mapfiles correctly
Date: Thu, 16 May 2013 11:09:38 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15477

             Bug #: 15477
           Summary: gld does not understand mapfiles correctly
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


gld does not work with typical mapfiles such as used by
e.g.OpenSolaris

To check the problem, get a recent cdrtools tarball from:

ftp://ftp.berlios.de/pub/cdrecord/alpha/ and patch the Linux configuration
to enable map files:

--- RULES/i586-linux-cc.rul.orig   2008-11-15 12:43:13.000000000 +0100
+++ RULES/i586-linux-cc.rul 2013-05-16 12:59:35.274826208 +0200
@@ -38,6 +38,16 @@
 LIB_MATH=      -lm
 LIB_KVM=       

+
+MAPVERS=       $(_MAPVERS) # This enables to use mapfiles
+
+#
+# We should use -Wl,-ztext here, but gcc does not create fully compliant
+# object files.
+#
+LDOPTDYN=      -shared -Wl,-soname,$(TARGET) $(PMAPVERS:%=-Wl,--version-script
%)
+
+
 #LDOPTS=               $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
 #
 # Uncomment the next line in case you are on an old Linux version that

Now chdir into "libschily" and call: "make LINKMODE=dynamic"

This results in:

...
        ==> MAKING DEPENDENCIES "wdabort.d"
        ==> MAKING DEPENDENCIES "zerobytes.d"
        ==> MAKING DIRECTORY "../libs/i686-linux-cc/pic"
        ==> LOCALIZING mapfile "OBJ/i686-linux-cc/pic/libschily-mapvers"
        ==> COMPILING "cvmod.o"
        ==> COMPILING "dat.o"
...
        ==> COMPILING "wcsstr.o"
        ==> COMPILING "wdabort.o"
        ==> COMPILING "zerobytes.o"
        ==> LINKING dynamic library
"../libs/i686-linux-cc/pic/libschily.so.1.0"
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: unable to
find version dependency `SCHILY_1.4'
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: unable to
find version dependency `SCHILY_1.3'
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: unable to
find version dependency `SCHILY_1.2'
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: unable to
find version dependency `SCHILY_1.1'
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: unable to
find version dependency `SCHILY_1.0'
collect2: error: ld returned 1 exit status

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]