[Bug binutils/12467] New: libbfd cant recognize valid ELF file
http://sourceware.org/bugzilla/show_bug.cgi?id=12467 Summary: libbfd cant recognize valid ELF file Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassig...@sources.redhat.com ReportedBy: anton.koch...@gmail.com Created attachment 5227 --> http://sourceware.org/bugzilla/attachment.cgi?id=5227 Binary "dream" file objdump cant parse valid elf file "dream", which is available herehttp://www.stripedgazelle.org/cgi-bin/wiki_joey/dream20101104.tar.gz objdump: file is not valid elf file but readelf succesfully do this: ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI:UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: Intel 80386 Version: 0x1 Entry point address: 0x8048e28 Start of program headers: 52 (bytes into file) Start of section headers: 180 (bytes into file) Flags: 0x0 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 4 Size of section headers: 40 (bytes) Number of section headers: 0 (0) Section header string table index: 0 There are no sections in this file. There are no sections in this file. Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align INTERP 0x0001d6 0x080481d6 0x 0x00013 0x00013 R 0x1000 [Requesting program interpreter: /lib/ld-linux.so.2] DYNAMIC0xfc 0x080480fc 0x 0x00048 0x00048 RW 0x1000 LOAD 0x00 0x08048000 0x 0x07a8b 0x07a8b R E 0x1000 LOAD 0x007a8b 0x0804fa8b 0x 0x01ef5 0x1f7e5a1 RWE 0x1000 Dynamic section at offset 0xfc contains 9 entries: TagType Name/Value 0x0001 (NEEDED) Shared library: [libdl.so.2] 0x0004 (HASH) 0x80480dc 0x0005 (STRTAB) 0x80481ac 0x0006 (SYMTAB) 0x8048144 0x000a (STRSZ) 42 (bytes) 0x000b (SYMENT) 16 (bytes) 0x0011 (REL)0x8048194 0x0012 (RELSZ) 24 (bytes) 0x0013 (RELENT) 8 (bytes) There are no relocations in this file. There are no unwind sections in this file. Histogram for bucket list length (total of 1 buckets): Length Number % of total Coverage 0 1 (100.0%) No version information found in this file. Also scanelf write something: TYPEPAX PERM ENDIAN STK/REL/PTL TEXTREL RPATH BIND FILE ET_EXEC PeMRxS 0755 LE --- --- RWX- - LAZY dream P.S. This bug was created from understanding another bug with paxctl from grsecurity from gentoo: https://bugs.gentoo.org/show_bug.cgi?id=353731 . difference between paxctl (dont recognize "dream" ) and chpax (recignize "dream") Attached "dream" binary and source of it's elf.scm (describe "dream" elf file format) -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/12467] libbfd cant recognize valid ELF file
http://sourceware.org/bugzilla/show_bug.cgi?id=12467 --- Comment #1 from Anton Kochkov 2011-02-05 14:23:06 UTC --- Created attachment 5228 --> http://sourceware.org/bugzilla/attachment.cgi?id=5228 elf structure source file from "dream" -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/12467] libbfd cant recognize valid ELF file
http://sourceware.org/bugzilla/show_bug.cgi?id=12467 Anton Kochkov changed: What|Removed |Added CC||anton.kochkov at gmail dot ||com -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gprof/12468] New: Missing functions and call counts
http://sourceware.org/bugzilla/show_bug.cgi?id=12468 Summary: Missing functions and call counts Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gprof AssignedTo: unassig...@sources.redhat.com ReportedBy: vincent.rivi...@freesbee.fr Target: m68k-aout There has been a regression between the binutils 2.19.1 and 2.20. Now gprof sees only functions having "self seconds" greater than 0. Other functions are not shown at all. Also, for the visible functions, the the "calls" column is empty. Given a correct gmon.out, gprof-2.19.1 displays it fine, while gprof-2.20 and higher have the problem described above. I believe this bug affects all a.out targets. I have tested this on the unofficial m68k-atari-mint target, since it is the only one for which I can run executables and produce a suitable gmon.out. -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gprof/12468] Missing functions and call counts
http://sourceware.org/bugzilla/show_bug.cgi?id=12468 --- Comment #1 from Vincent Rivière 2011-02-05 14:58:23 UTC --- This bug comes from gprof/corefile.c, in the function core_create_function_syms(). Old code was: symtab.limit->is_func = TRUE; But the new code is: symtab.limit->is_func = (core_syms[i]->flags & BSF_FUNCTION) != 0; If I'm not wrong, the BSF_FUNCTION flag is not available on a.out targets, so the symbols are never considered as functions. It works fine when I revert to TRUE unconditionally. Ideally, the BSF_FUNCTION flag should be tested only if it is available on the target. -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/12467] libbfd cant recognize valid ELF file
http://sourceware.org/bugzilla/show_bug.cgi?id=12467 Anton Kochkov changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Comment #2 from Anton Kochkov 2011-02-05 20:24:18 UTC --- Fixed. was wrong elf file. https://bugs.gentoo.org/show_bug.cgi?id=353776 But i have some ideas, that objdump or readelf should can report such errors (more useful, than just printing "not valid elf file" -- 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. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils