Subject: Re: build paxctl on non-elf hosts
To: Manuel Bouyer <>
From: Jeff Rizzo <>
List: tech-toolchain
Date: 11/21/2006 14:38:43
Manuel Bouyer wrote:
> Hi,
> current tools fails to build on darwin because paxctl can't find elf.h.
> Would anyone object to the attached patch ? I think it's better to use
> our elf.h anyway, as the tool is supposed to operate on cross-compiled
> binaries.
> elf.h is sys/sys/exec_elf.h without the machdep defines, which paxctl
> doesn't use.

Heh.  I just fixed this problem as well, before seeing your email.  My
patch is here, and I think I prefer it, if only because it's smaller:

...if there are no objections, I'll check it in.