[haiku-development] Re: ELF Stack Program Header type

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 09 Apr 2009 21:40:50 +0200 CEST

> > At least the System V ABI specs (4.1) don't mention a type
> > PT_STACK. It's
> > also interesting that it both a zero file and memory size, which
> > makes me
> > wonder how it could be good for anything.
> >
> > CU, Ingo
> >
> I've had the same problem (or still have for that matter) in scummvm,
> problem are these offending lines:
>
>  1910 %ifidn __OUTPUT_FORMAT__,elf
>  1911 section .note.GNU-stack noalloc noexec nowrite progbits
>  1912 %endif
>
> they are responsible for adding the extra header gnu_stack to scummvm
> where Haiku doesn't know what to do with.

Looks like some way to specify stack properties and flags...
since we don't have any security features yet, those are not really
needed.

> IIRC it has been mentioned in bug tracker also. You probly have to
> look
> for some lines simular like these who are responsible for the header.
> Removing them from the source in scummvm resolved the problem with
> scummvm

So it should just be ignored.

>  not running in Haiku. (ZETA didn't had the problem with the extra
> header).

I suppose the BeOS loader just ignores what it doesn't know about...

François.

Other related posts: