This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

e_phnum > 1


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


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