diff options
author | Nick Clifton <nickc@redhat.com> | 2014-03-25 16:50:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-03-25 16:50:10 +0000 |
commit | 3c6256d29e2c528880a3cf8df43adf32c7780de5 (patch) | |
tree | 7f242618f120a19b6d8e70fc9c0ac2a41c154228 /gas/config/obj-coff-seh.h | |
parent | bc9a55253ed7122cfeee90cd23d964f44c8b0e6a (diff) | |
download | binutils-gdb-3c6256d29e2c528880a3cf8df43adf32c7780de5.tar.gz |
This patch adds a new pseudo-op - .seh_code - to structured exception handling
suite of ops. It changes the current section back to the code section of the
current function. This is helpful because the code section may not be .text.
* config/obj-coff-seh.c (obj_coff_seh_code): New function -
switches the current segment back to the code segment recorded
when seh_proc was last invoked.
* config/obj-coff-seh.h (SEH_CMDS): Add seh_code.
Diffstat (limited to 'gas/config/obj-coff-seh.h')
-rw-r--r-- | gas/config/obj-coff-seh.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/obj-coff-seh.h b/gas/config/obj-coff-seh.h index cf4d216e675..cf494851635 100644 --- a/gas/config/obj-coff-seh.h +++ b/gas/config/obj-coff-seh.h @@ -56,6 +56,7 @@ .seh_savereg .seh_savexmm .seh_pushframe + .seh_code */ /* architecture specific pdata/xdata handling. */ @@ -73,6 +74,7 @@ {"seh_32", obj_coff_seh_32, 1}, \ {"seh_no32", obj_coff_seh_32, 0}, \ {"seh_handler", obj_coff_seh_handler, 0}, \ + {"seh_code", obj_coff_seh_code, 0}, \ {"seh_handlerdata", obj_coff_seh_handlerdata, 0}, /* Type definitions. */ @@ -148,6 +150,7 @@ static void obj_coff_seh_32 (int); static void obj_coff_seh_proc (int); static void obj_coff_seh_handler (int); static void obj_coff_seh_handlerdata (int); +static void obj_coff_seh_code (int); #define UNDSEC bfd_und_section_ptr @@ -201,4 +204,3 @@ static void obj_coff_seh_handlerdata (int); PEX64_SCOPE_ENTRY_SIZE * (IDX)) #endif - |