bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/2607] linker doesn't recognize an ELF library.


From: pluto at agmk dot net
Subject: [Bug ld/2607] linker doesn't recognize an ELF library.
Date: 9 May 2006 09:25:42 -0000

------- Additional Comments From pluto at agmk dot net  2006-05-09 09:25 -------
(In reply to comment #5)

> If the NDA does not allow you to supply a test file, then there is not 
> much that we will able to do.  One thing you could try though is to run 
> "readelf -a -w libcmodel.so" and see if readelf reports any errors or 
> problems in the file.  (I am assuming that the file is somehow not quite 
> conformant to the ELF standard and this is why it is not being recognised).

readelf -a -w doesn't report any warnings/errors.

> Is the supplier of the file Cisco by any chance ?

i'm sure it's not a cisco product.
it was compiled with sun workshop studio.

i've checked an older version (2.15) of binutils and it works.

current 2.16 fails...

$ sparc-sun-solaris2.9-strip libcmodel.so -v --strip-unneeded
sparc-sun-solaris2.9-strip: libcmodel.so: File format not recognized

so, strip with older (2.15) version...

$ /usr/local/solaris-cross/bin/sparc-sun-solaris2.8-strip libcmodel.so \
  -v --strip-unneeded
copy from libcmodel.so(elf32-sparc) to stCGYfYS(elf32-sparc)

...and test again with 2.16...

$ sparc-sun-solaris2.9-strip libcmodel.so -v --strip-unneeded
copy from `libcmodel.so' [elf32-sparc] to `stopZxTe' [elf32-sparc]
BFD: stopZxTe: warning: allocated section `.bss' not in segment

library stripped by 2.15 doesn't contain some information:

--- libcmodel.so.orig.txt       2006-05-09 11:10:37.000000000 +0200
+++ libcmodel.so.txt    2006-05-09 11:22:22.000000000 +0200
@@ -1,6 +1,6 @@

-libcmodel.so.orig:     file format elf32-sparc
-libcmodel.so.orig
+libcmodel.so:     file format elf32-sparc
+libcmodel.so
 architecture: sparc, flags 0x00000150:
 HAS_SYMS, DYNAMIC, D_PAGED
 start address 0x00000094
@@ -8,10 +8,10 @@
 Program Header:
     LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**16
          filesz 0x000504e9 memsz 0x000504e9 flags r-x
-    LOAD off    0x000504ec vaddr 0x000604ec paddr 0x00000000 align 2**16
+    LOAD off    0x000504ec vaddr 0x000604ec paddr 0x000604ec align 2**16
          filesz 0x000020f8 memsz 0x000020f8 flags rwx
- DYNAMIC off    0x00051748 vaddr 0x00061748 paddr 0x00000000 align 2**0
-         filesz 0x000000e0 memsz 0x00000000 flags rwx
+ DYNAMIC off    0x00051748 vaddr 0x00061748 paddr 0x00061748 align 2**2
+         filesz 0x000000e0 memsz 0x000000e0 flags rwx

 Dynamic Section:
   NEEDED      libCstd.so.1
@@ -42,15 +42,6 @@
   FLAGS_1     0x8000
   PLTGOT      0x60a6c

-Version References:
-  required from libCstd.so.1:
-    0x0d279a21 0x02 00 SUNW_1.1.1
-    0x0a3d2791 0x00 00 SUNW_1.1
-  required from libCrun.so.1:
-    0x0a3d2791 0x00 00 SUNW_1.1
-  required from libdl.so.1:
-    0x077a74f3 0x00 00 SISCD_2.3
-
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .hash         000014f0  00000094  00000094  00000094  2**2
@@ -97,7 +88,7 @@
                   CONTENTS, ALLOC, LOAD, DATA
  21 .bss          00000000  000625e4  000625e4  000525e4  2**0
                   ALLOC
- 22 .comment      0000002c  00000000  00000000  000526d5  2**0
+ 22 .comment      0000002c  00000000  00000000  000525e4  2**0
                   CONTENTS, READONLY
 SYMBOL TABLE:
 no symbols


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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