Board index » kylix » Runtime patch available for Kylix applications crashing under Kernel 2.6.8 w/ exec-shield

Runtime patch available for Kylix applications crashing under Kernel 2.6.8 w/ exec-shield


2004-09-30 04:49:29 AM
kylix2
I've just finished a runtime patch for Kylix applications crashing with
exec-shield (see previous threads).
crosskylix.untergrund.net/execshield.html
It's a unit (execshieldfix.pas) which needs to be the very first unit in
your projects use clause.
What this unit does is more or less the same as with the binary
patch - it searches the ELF tables in memory to find out the location
of the segments missing execution flags, probably aligns those
addresses, and then calls libc mprotect to give those pages the execution
flag. See the source for more information.
I recommend using this unit in all your Kylix projects until a Compiler
update is available from Borland (which probably will take a while...).
Simon
 
 

Re:Runtime patch available for Kylix applications crashing under Kernel 2.6.8 w/ exec-shield

Simon Kissel schrieb:
Quote
I've just finished a runtime patch for Kylix applications crashing with
exec-shield (see previous threads).

crosskylix.untergrund.net/execshield.html

It's a unit (execshieldfix.pas) which needs to be the very first unit in
your projects use clause.

What this unit does is more or less the same as with the binary
patch - it searches the ELF tables in memory to find out the location
of the segments missing execution flags, probably aligns those
addresses, and then calls libc mprotect to give those pages the execution
flag. See the source for more information.

I recommend using this unit in all your Kylix projects until a Compiler
update is available from Borland (which probably will take a while...).

Simon
Thanks!