[COMMIT] Rewrite obj-coff-seh.c

Richard Henderson rth@redhat.com
Mon Aug 30 23:44:00 GMT 2010


Here's the final version that I committed.

Tested on x86_64-w64-mingw32 native.

Crosses to {arm,sh}-wince-pe tested.  The original code doesn't actually
work -- it generates an empty .pdata entry for even trivial inputs.  The
new code appears to do the right thing.

There's still code in gas for mips-wince-pe, but it's been disabled in bfd.

As discussed with Kai, I've removed the .seh_scope directive as being too
Microsoft specific.  I've replaced it with .seh_handlerdata which mirrors
the .handlerdata directive seen in IA-64 and ARM EABI unwind info.  This
directive allows arbitrary data to be emitted to this (sub)section.  One
can duplicate the effect of the old .seh_scope directive with .rva once
having switched to the .seh_handerdata section.



r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gas-seh-2a
URL: <https://sourceware.org/pipermail/binutils/attachments/20100830/1c99aaea/attachment.ksh>


More information about the Binutils mailing list