bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/2495] Solaris2 amd64 file format not recognized


From: petr at vandrovec dot name
Subject: [Bug binutils/2495] Solaris2 amd64 file format not recognized
Date: 30 Jun 2006 04:58:21 -0000

------- Additional Comments From petr at vandrovec dot name  2006-06-30 04:58 
-------
Created an attachment (id=1128)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1128&action=view)
Ignore (accept) SHT_LOOS...SHT_HIOS sections in elf64

Just FYI, attached patch is sufficient to make binutils happy on Solaris. 
Problem is that there is strange section named .SUNW_signature of an OS
specific type piggybacked on files which come with Solaris.

Problem is regression from 2.15.92 binutils.  Although they did not behave
quite correctly (they've completely ignored section, even not showing it in
objdump -h output), they did not fail with quite unexpected error that file
format is not recognized.

eu-readelf says:

There are 11 section headers, starting at offset 0x308:

Section Headers:
[Nr] Name            Type       Addr     Off      Size     ES Flags Lk Inf Al
[ 0]                 NULL       00000000 00000000 00000000  0        0   0  0
[ 1] .text           PROGBITS   00000000 00000040 00000000  0 AX     0   0  4
[ 2] .data           PROGBITS   00000000 00000040 00000000  0 WA     0   0  4
[ 3] .bss            NOBITS     00000000 00000040 00000000  0 WA     0   0  4
[ 4] .comment        PROGBITS   00000000 00000040 00000025  0        0   0  1
[ 5] .init           PROGBITS   00000000 00000070 00000004  0 AX     0   0 16
[ 6] .fini           PROGBITS   00000000 00000080 00000004  0 AX     0   0 16
[ 7] .shstrtab       STRTAB     00000000 00000084 00000051  0        0   0  1
[ 8] .symtab         SYMTAB     00000000 000000d8 00000108 24        9   9  8
[ 9] .strtab         STRTAB     00000000 000001e0 00000014  0        0   0  1
[10] .SUNW_signature 0x6ffffff6 00000000 000001f4 0000010e  0 E      0   0  1

Thanks,  Petr Vandrovec


-- 


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

------- 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]