This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add support for the Win32 hook prologue (try 3)
Am Friday 11 September 2009 18:21:39 schrieb Kai Tietz:
> All of this can be handled by a simple override of
> ASM_DECLARE_FUNCTION_NAME macro.
> It is the cleanest and best maintainable approach and you don't need
> to touch here the linker.
Thanks a lot, I think you just saved me a weekend of banging my head into a
wall while trying to figure that out by reading the code.
One more question: Do I have to care about the alignment of the function
start? My sense is that i*86 doesn't have any problem with jumping(or
calling) an unaligned label, since the way the opcodes work begs for
unaligned instruction pointers.
(as far as I can see the MSFT compiler doesn't care about alignment either)