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 04:23 PM, Stefan Dösinger wrote:
What stops me from dumping the 5 NOPs, then going through the usual
ASM_OUTPUT_ALIGN and ASM_OUTPUT_MAX_SKIP_ALIGN? What extra logic has to be
applied that 3 separate functions can't do?

Because those aligns will emit multi-byte nops. If we've decided that only 0x90 and 0xcc are to be allowed in the filler space, you can't use those.



r~



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