This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug when generating Program Header in elf files


hi,

here are some dumps using objdump of the program header :

good version :
bash-2.03$ objdump -p loader.img.binutils-2.9.5 

loader.img.binutils-2.9.5:     file format elf32-i386

Program Header:
    LOAD off    0x00000080 vaddr 0x00201000 paddr 0x00201000 align 2**5
         filesz 0x00000aa4 memsz 0x00001a60 flags rwx


wrong version :
bash-2.03$ objdump -p loader.img.binutils-2.11.90 

loader.img.binutils-2.11.90:     file format elf32-i386

Program Header:
    LOAD off    0x00000080 vaddr 0x00000080 paddr 0x00000080 align 2**5
         filesz 0x00000140 memsz 0x00000140 flags r--
    LOAD off    0x000001c0 vaddr 0x00201000 paddr 0x00201000 align 2**4
         filesz 0x0000096c memsz 0x00001920 flags rwx



hope it will help :)

thomas
-- 
PETAZZONI Thomas
thomas.petazzoni@meridon.com
ICQ : 34937744
Projet KOS : http://kos.enix.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]