This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
e_phnum > 1
- From: "Alexander Voropay" <a dot voropay at equant dot ru>
- To: <binutils at sources dot redhat dot com>
- Date: Sun, 26 Feb 2006 16:03:25 +0300
- Subject: e_phnum > 1
- Reply-to: "Alexander Voropay" <a dot voropay at equant dot ru>
Hi!
Can anyone help me with objdump/BFD ?
I'm using an old MIPS-based equipment wich has an old simply
built-in Bootloader. This Bootloader can download an ELF files,
but unfortunately, it can't understand an ELF files with multiple
segments (program headers) where e_phnum > 1 :(
GNU Binutils produces ELF files with *two* segments:
...
Section to Segment mapping:
Segment Sections...
00 .reginfo
01 .text .reginfo .data
...
Is there any way to create an ELF with exactly *one* segment ??
I've tryed to remove all sections except .text :
$ objdump --strip-unneeded --only-section .text src.elf dst.elf
Very intersting result. Objdump creates a first *emty* segment :
Section to Segment mapping:
Segment Sections...
00
01 .text
--
-=AV=-