A dylib I created crashes under Lion, but works just fine under Snow Leopard. This seems to be caused by a compiler bug (Delphi XE2, Upd.4) which results in code ending up in a data section.
When the dylib is loaded, there's a SIGBUS with KERN_PROTECTION_FAILURE at an address within a RODATA section.
Since I need to get this working under Lion ASAP, is there a way to disable DEP under Lion?