Bug when generating Program Header in elf files

Thomas Petazzoni thomas.petazzoni@meridon.com
Wed May 30 04:38:00 GMT 2001


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



More information about the Binutils mailing list