[haiku-development] Missing program header

  • From: Schrijvers Luc <Begasus@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 12 Dec 2008 09:39:48 +0100

Hello,

I was looking into compiling and running the latest scummvm tarball when
running into the problem of the parsing program header.

runtime_loader: Troubles parsing Program headers, numRegions =
-2147483632

Deadyak already mentioned the use of objdump and after checking a
previous version I found out that the new binary had one more program
header.

GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4

Checking the source for it I found that it was linked against 2 source
files that were compiled with nasm, renaming the nasm so the configure
script didn't pick it up and recompiled the source I didn't have the
extra header anymore in the binary. 
Checked with objdump and started the binary ... yeay!! sucses!! ;)

All great but I wanted the 2 files also compiled to get a full build for
scummvm so I searched how to get those done. Commenting the lines 

%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif

out at the end of the two files worked and scummvm is fully build now,
and working! ;)

Thought this info could be of use to others running into simular
problem.

Also reason I asked here is, can it hurt to comment the lines out? Is
the missing program header GNU_STACK a nasm problem or Haiku one? 

Anyway ... keep up the good work ... Haiku is getting to be very
goooooood!!! ;)

Luc aka Begasus


Other related posts: