This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add support for the Win32 hook prologue (try 3)


On 09/11/2009 11:56 AM, Pedro Alves wrote:
"Googling hits this:<http://www.openrce.org/articles/full_view/22>, which
mentions something about ">= 5 bytes, padded with 0xCC".

... then this variant does work: ".align 4, 0xcc". The assembler isn't going to be merging int3's for sure. :-)

The "x86 Patch examples" section mentions "5x 90", nothing about 0xcc.



r~



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]