source: libcfa/src/exception.c@ a3effcc

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since a3effcc was ba70330, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

fix exception problems from ARM changes

  • Property mode set to 100644
File size: 21.1 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// exception.c --
8//
9// Author : Andrew Beach
10// Created On : Mon Jun 26 15:13:00 2017
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Fri Aug 21 11:27:56 2020
13// Update Count : 29
14//
15
16// Normally we would get this from the CFA prelude.
17#include <stddef.h> // for size_t
18
19#include "exception.h"
20
21// Implementation of the secret header is hardware dependent.
22#if defined( __x86_64 ) || defined( __i386 )
23#elif defined( __ARM_ARCH )
24#warning FIX ME: check if anything needed for ARM
25#else
26#warning Exception Handling: No known architecture detected.
27#endif
28
29#include <stdlib.h>
30#include <stdio.h>
31#include <unwind.h>
32#include <bits/debug.hfa>
33#include "concurrency/invoke.h"
34#include "stdhdr/assert.h"
35
36// FIX ME: temporary hack to keep ARM build working
37#ifndef _URC_FATAL_PHASE1_ERROR
38#define _URC_FATAL_PHASE1_ERROR 3
39#endif // ! _URC_FATAL_PHASE1_ERROR
40#ifndef _URC_FATAL_PHASE2_ERROR
41#define _URC_FATAL_PHASE2_ERROR 2
42#endif // ! _URC_FATAL_PHASE2_ERROR
43
44#include "lsda.h"
45
46/* The exception class for our exceptions. Because of the vendor component
47 * its value would not be standard.
48 * Vendor: UWPL
49 * Language: CFA\0
50 */
51const _Unwind_Exception_Class __cfaehm_exception_class = 0x4c50575500414643;
52
53// Base exception vtable is abstract, you should not have base exceptions.
54struct __cfaehm_base_exception_t_vtable
55 ___cfaehm_base_exception_t_vtable_instance = {
56 .parent = NULL,
57 .size = 0,
58 .copy = NULL,
59 .free = NULL,
60 .msg = NULL
61};
62
63
64// Get the current exception context.
65// There can be a single global until multithreading occurs, then each stack
66// needs its own. We get this from libcfathreads (no weak attribute).
67__attribute__((weak)) struct exception_context_t * this_exception_context() {
68 static struct exception_context_t shared_stack = {NULL, NULL};
69 return &shared_stack;
70}
71
72
73// RESUMPTION ================================================================
74
75static void reset_top_resume(struct __cfaehm_try_resume_node ** store) {
76 this_exception_context()->top_resume = *store;
77}
78
79void __cfaehm_throw_resume(exception_t * except, void (*defaultHandler)(exception_t *)) {
80 struct exception_context_t * context = this_exception_context();
81
82 __cfadbg_print_safe(exception, "Throwing resumption exception\n");
83
84 {
85 __attribute__((cleanup(reset_top_resume)))
86 struct __cfaehm_try_resume_node * original_head = context->top_resume;
87 struct __cfaehm_try_resume_node * current = context->top_resume;
88
89 for ( ; current ; current = current->next) {
90 context->top_resume = current->next;
91 if (current->handler(except)) {
92 return;
93 }
94 }
95 } // End the search and return to the top of the stack.
96
97 // No handler found, fall back to the default operation.
98 __cfadbg_print_safe(exception, "Unhandled exception\n");
99 defaultHandler(except);
100}
101
102// Do we control where exceptions get thrown even with concurency?
103// If not these are not quite thread safe, the cleanup hook has to
104// be added after the node is built but before it is made the top node.
105
106void __cfaehm_try_resume_setup(struct __cfaehm_try_resume_node * node,
107 _Bool (*handler)(exception_t * except)) {
108 struct exception_context_t * context = this_exception_context();
109 node->next = context->top_resume;
110 node->handler = handler;
111 context->top_resume = node;
112}
113
114void __cfaehm_try_resume_cleanup(struct __cfaehm_try_resume_node * node) {
115 struct exception_context_t * context = this_exception_context();
116 context->top_resume = node->next;
117}
118
119
120// MEMORY MANAGEMENT =========================================================
121
122struct __cfaehm_node {
123 struct _Unwind_Exception unwind_exception;
124 struct __cfaehm_node * next;
125 int handler_index;
126};
127
128#define NODE_TO_EXCEPT(node) ((exception_t *)(1 + (node)))
129#define EXCEPT_TO_NODE(except) ((struct __cfaehm_node *)(except) - 1)
130#define UNWIND_TO_NODE(unwind) ((struct __cfaehm_node *)(unwind))
131#define NULL_MAP(map, ptr) ((ptr) ? (map(ptr)) : NULL)
132
133// How to clean up an exception in various situations.
134static void __cfaehm_exception_cleanup(
135 _Unwind_Reason_Code reason,
136 struct _Unwind_Exception * exception) {
137 switch (reason) {
138 case _URC_FOREIGN_EXCEPTION_CAUGHT:
139 // This one we could clean-up to allow cross-language exceptions.
140 case _URC_FATAL_PHASE1_ERROR:
141 case _URC_FATAL_PHASE2_ERROR:
142 default:
143 abort();
144 }
145}
146
147// Creates a copy of the indicated exception and sets current_exception to it.
148static void __cfaehm_allocate_exception( exception_t * except ) {
149 struct exception_context_t * context = this_exception_context();
150
151 // Allocate memory for the exception.
152 struct __cfaehm_node * store = malloc(
153 sizeof( struct __cfaehm_node ) + except->virtual_table->size );
154
155 if ( ! store ) {
156 // Failure: cannot allocate exception. Terminate thread.
157 abort(); // <- Although I think it might be the process.
158 }
159
160 // Initialize the node:
161 exception_t * except_store = NODE_TO_EXCEPT(store);
162 store->unwind_exception.exception_class = __cfaehm_exception_class;
163 store->unwind_exception.exception_cleanup = __cfaehm_exception_cleanup;
164 store->handler_index = 0;
165 except->virtual_table->copy( except_store, except );
166
167 // Add the node to the list:
168 store->next = NULL_MAP(EXCEPT_TO_NODE, context->current_exception);
169 context->current_exception = except_store;
170}
171
172// Delete the provided exception, unsetting current_exception if relivant.
173static void __cfaehm_delete_exception( exception_t * except ) {
174 struct exception_context_t * context = this_exception_context();
175
176 __cfadbg_print_safe(exception, "Deleting Exception\n");
177
178 // Remove the exception from the list.
179 struct __cfaehm_node * to_free = EXCEPT_TO_NODE(except);
180 struct __cfaehm_node * node;
181
182 if ( context->current_exception == except ) {
183 node = to_free->next;
184 context->current_exception = NULL_MAP(NODE_TO_EXCEPT, node);
185 } else {
186 node = EXCEPT_TO_NODE(context->current_exception);
187 // It may always be in the first or second position.
188 while ( to_free != node->next ) {
189 node = node->next;
190 }
191 node->next = to_free->next;
192 }
193
194 // Free the old exception node.
195 except->virtual_table->free( except );
196 free( to_free );
197}
198
199// CANCELLATION ==============================================================
200
201// Function needed by force unwind
202// It basically says to unwind the whole stack and then exit when we reach the end of the stack
203static _Unwind_Reason_Code _Stop_Fn(
204 int version,
205 _Unwind_Action actions,
206 _Unwind_Exception_Class exception_class,
207 struct _Unwind_Exception * unwind_exception,
208 struct _Unwind_Context * unwind_context,
209 void * stop_param) {
210 // Verify actions follow the rules we expect.
211 verify((actions & _UA_CLEANUP_PHASE) && (actions & _UA_FORCE_UNWIND));
212 verify(!(actions & (_UA_SEARCH_PHASE | _UA_HANDLER_FRAME)));
213
214 if ( actions & _UA_END_OF_STACK ) {
215 exit(1);
216 } else {
217 return _URC_NO_REASON;
218 }
219}
220
221static struct _Unwind_Exception cancel_exception_storage;
222
223// Cancel the current stack, prefroming approprate clean-up and messaging.
224void __cfaehm_cancel_stack( exception_t * exception ) {
225 // TODO: Detect current stack and pick a particular stop-function.
226 _Unwind_Reason_Code ret;
227 ret = _Unwind_ForcedUnwind( &cancel_exception_storage, _Stop_Fn, (void*)0x22 );
228 printf("UNWIND ERROR %d after force unwind\n", ret);
229 abort();
230}
231
232
233// TERMINATION ===============================================================
234
235// If this isn't a rethrow (*except==0), delete the provided exception.
236void __cfaehm_cleanup_terminate( void * except ) {
237 if ( *(void**)except ) __cfaehm_delete_exception( *(exception_t **)except );
238}
239
240static void __cfaehm_cleanup_default( exception_t ** except ) {
241 __cfaehm_delete_exception( *except );
242 *except = NULL;
243}
244
245// The exception that is being thrown must already be stored.
246static void __cfaehm_begin_unwind(void(*defaultHandler)(exception_t *)) {
247 struct exception_context_t * context = this_exception_context();
248 if ( NULL == context->current_exception ) {
249 printf("UNWIND ERROR missing exception in begin unwind\n");
250 abort();
251 }
252 struct _Unwind_Exception * storage =
253 &EXCEPT_TO_NODE(context->current_exception)->unwind_exception;
254
255 // Call stdlibc to raise the exception
256 __cfadbg_print_safe(exception, "Begin unwinding (storage &p, context %p)\n", storage, context);
257 _Unwind_Reason_Code ret = _Unwind_RaiseException( storage );
258
259 // If we reach here it means something happened. For resumption to work we need to find a way
260 // to return back to here. Most of them will probably boil down to setting a global flag and
261 // making the phase 1 either stop or fail. Causing an error on purpose may help avoiding
262 // unnecessary work but it might have some weird side effects. If we just pretend no handler
263 // was found that would work but may be expensive for no reason since we will always search
264 // the whole stack.
265
266 // We did not simply reach the end of the stack without finding a handler. This is an error.
267 if ( ret != _URC_END_OF_STACK ) {
268 printf("UNWIND ERROR %d after raise exception\n", ret);
269 abort();
270 }
271
272 // No handler found, go to the default operation.
273 __cfadbg_print_safe(exception, "Uncaught exception %p\n", storage);
274
275 __attribute__((cleanup(__cfaehm_cleanup_default)))
276 exception_t * exception = context->current_exception;
277 defaultHandler( exception );
278}
279
280void __cfaehm_throw_terminate( exception_t * val, void (*defaultHandler)(exception_t *) ) {
281 __cfadbg_print_safe(exception, "Throwing termination exception\n");
282
283 __cfaehm_allocate_exception( val );
284 __cfaehm_begin_unwind( defaultHandler );
285}
286
287static __attribute__((noreturn)) void __cfaehm_rethrow_adapter( exception_t * except ) {
288 // TODO: Print some error message.
289 (void)except;
290 abort();
291}
292
293void __cfaehm_rethrow_terminate(void) {
294 __cfadbg_print_safe(exception, "Rethrowing termination exception\n");
295
296 __cfaehm_begin_unwind( __cfaehm_rethrow_adapter );
297 abort();
298}
299
300#if defined( __x86_64 ) || defined( __i386 )
301// This is our personality routine. For every stack frame annotated with
302// ".cfi_personality 0x3,__gcfa_personality_v0" this function will be called twice when unwinding.
303// Once in the search phase and once in the cleanup phase.
304_Unwind_Reason_Code __gcfa_personality_v0(
305 int version,
306 _Unwind_Action actions,
307 unsigned long long exception_class,
308 struct _Unwind_Exception * unwind_exception,
309 struct _Unwind_Context * unwind_context)
310{
311
312 //__cfadbg_print_safe(exception, "CFA: 0x%lx\n", _Unwind_GetCFA(context));
313 __cfadbg_print_safe(exception, "Personality function (%d, %x, %llu, %p, %p):",
314 version, actions, exception_class, unwind_exception, unwind_context);
315
316 // Verify that actions follow the rules we expect.
317 // This function should never be called at the end of the stack.
318 verify(!(actions & _UA_END_OF_STACK));
319 // Either only the search phase flag is set or...
320 if (actions & _UA_SEARCH_PHASE) {
321 verify(actions == _UA_SEARCH_PHASE);
322 __cfadbg_print_safe(exception, " lookup phase");
323 // ... we are in clean-up phase.
324 } else {
325 verify(actions & _UA_CLEANUP_PHASE);
326 __cfadbg_print_safe(exception, " cleanup phase");
327 // We shouldn't be the handler frame during forced unwind.
328 if (actions & _UA_HANDLER_FRAME) {
329 verify(!(actions & _UA_FORCE_UNWIND));
330 __cfadbg_print_safe(exception, " (handler frame)");
331 } else if (actions & _UA_FORCE_UNWIND) {
332 __cfadbg_print_safe(exception, " (force unwind)");
333 }
334 }
335
336 // Get a pointer to the language specific data from which we will read what we need
337 const unsigned char * lsd = _Unwind_GetLanguageSpecificData( unwind_context );
338
339 if ( !lsd ) { //Nothing to do, keep unwinding
340 printf(" no LSD");
341 goto UNWIND;
342 }
343
344 // Get the instuction pointer and a reading pointer into the exception table
345 lsda_header_info lsd_info;
346 const unsigned char * cur_ptr = parse_lsda_header(unwind_context, lsd, &lsd_info);
347 _Unwind_Ptr instruction_ptr = _Unwind_GetIP(unwind_context);
348
349 struct exception_context_t * context = this_exception_context();
350
351 // Linearly search the table for stuff to do
352 while ( cur_ptr < lsd_info.action_table ) {
353 _Unwind_Ptr callsite_start;
354 _Unwind_Ptr callsite_len;
355 _Unwind_Ptr callsite_landing_pad;
356 _uleb128_t callsite_action;
357
358 // Decode the common stuff we have in here
359 cur_ptr = read_encoded_value(0, lsd_info.call_site_encoding, cur_ptr, &callsite_start);
360 cur_ptr = read_encoded_value(0, lsd_info.call_site_encoding, cur_ptr, &callsite_len);
361 cur_ptr = read_encoded_value(0, lsd_info.call_site_encoding, cur_ptr, &callsite_landing_pad);
362 cur_ptr = read_uleb128(cur_ptr, &callsite_action);
363
364 // Have we reach the correct frame info yet?
365 if ( lsd_info.Start + callsite_start + callsite_len < instruction_ptr ) {
366#ifdef __CFA_DEBUG_PRINT__
367 void * ls = (void*)lsd_info.Start;
368 void * cs = (void*)callsite_start;
369 void * cl = (void*)callsite_len;
370 void * bp = (void*)lsd_info.Start + callsite_start;
371 void * ep = (void*)lsd_info.Start + callsite_start + callsite_len;
372 void * ip = (void*)instruction_ptr;
373 __cfadbg_print_safe(exception, "\nfound %p - %p (%p, %p, %p), looking for %p\n",
374 bp, ep, ls, cs, cl, ip);
375#endif // __CFA_DEBUG_PRINT__
376 continue;
377 }
378
379 // Have we gone too far?
380 if ( lsd_info.Start + callsite_start > instruction_ptr ) {
381 printf(" gone too far");
382 break;
383 }
384
385 // Check for what we must do:
386 if ( 0 == callsite_landing_pad ) {
387 // Nothing to do, move along
388 __cfadbg_print_safe(exception, " no landing pad");
389 } else if (actions & _UA_SEARCH_PHASE) {
390 // In search phase, these means we found a potential handler we must check.
391
392 // We have arbitrarily decided that 0 means nothing to do and 1 means there is
393 // a potential handler. This doesn't seem to conflict the gcc default behavior.
394 if (callsite_action != 0) {
395 // Now we want to run some code to see if the handler matches
396 // This is the tricky part where we want to the power to run arbitrary code
397 // However, generating a new exception table entry and try routine every time
398 // is way more expansive than we might like
399 // The information we have is :
400 // - The GR (Series of registers)
401 // GR1=GP Global Pointer of frame ref by context
402 // - The instruction pointer
403 // - The instruction pointer info (???)
404 // - The CFA (Canonical Frame Address)
405 // - The BSP (Probably the base stack pointer)
406
407 // The current apprach uses one exception table entry per try block
408 _uleb128_t imatcher;
409 // Get the relative offset to the {...}?
410 cur_ptr = read_uleb128(cur_ptr, &imatcher);
411
412 _Unwind_Word match_pos =
413# if defined( __x86_64 )
414 _Unwind_GetCFA(unwind_context) + 8;
415# elif defined( __i386 )
416 _Unwind_GetCFA(unwind_context) + 24;
417# elif defined( __ARM_ARCH )
418# warning FIX ME: check if anything needed for ARM
419 42;
420# endif
421 int (*matcher)(exception_t *) = *(int(**)(exception_t *))match_pos;
422
423 int index = matcher(context->current_exception);
424 _Unwind_Reason_Code ret = (0 == index)
425 ? _URC_CONTINUE_UNWIND : _URC_HANDLER_FOUND;
426 UNWIND_TO_NODE(unwind_exception)->handler_index = index;
427
428 // Based on the return value, check if we matched the exception
429 if (ret == _URC_HANDLER_FOUND) {
430 __cfadbg_print_safe(exception, " handler found\n");
431 } else {
432 // TODO: Continue the search if there is more in the table.
433 __cfadbg_print_safe(exception, " no handler\n");
434 }
435 return ret;
436 }
437
438 // This is only a cleanup handler, ignore it
439 __cfadbg_print_safe(exception, " no action");
440 } else {
441 // In clean-up phase, no destructors here but this could be the handler.
442
443 if ( (callsite_action != 0) && !(actions & _UA_HANDLER_FRAME) ){
444 // If this is a potential exception handler
445 // but not the one that matched the exception in the seach phase,
446 // just ignore it
447 goto UNWIND;
448 }
449
450 // We need to run some clean-up or a handler
451 // These statment do the right thing but I don't know any specifics at all
452 _Unwind_SetGR( unwind_context, __builtin_eh_return_data_regno(0),
453 (_Unwind_Ptr)unwind_exception );
454 _Unwind_SetGR( unwind_context, __builtin_eh_return_data_regno(1), 0 );
455
456 // I assume this sets the instruction pointer to the adress of the landing pad
457 // It doesn't actually set it, it only state the value that needs to be set once we
458 // return _URC_INSTALL_CONTEXT
459 _Unwind_SetIP( unwind_context, ((lsd_info.LPStart) + (callsite_landing_pad)) );
460
461 __cfadbg_print_safe(exception, " action\n");
462
463 // Return have some action to run
464 return _URC_INSTALL_CONTEXT;
465 }
466 }
467 // No handling found
468 __cfadbg_print_safe(exception, " table end reached");
469
470 UNWIND:
471 __cfadbg_print_safe(exception, " unwind\n");
472
473 // Keep unwinding the stack
474 return _URC_CONTINUE_UNWIND;
475}
476
477#pragma GCC push_options
478#pragma GCC optimize(0)
479
480// Try statements are hoisted out see comments for details. While this could probably be unique
481// and simply linked from libcfa but there is one problem left, see the exception table for details
482__attribute__((noinline))
483void __cfaehm_try_terminate(void (*try_block)(),
484 void (*catch_block)(int index, exception_t * except),
485 __attribute__((unused)) int (*match_block)(exception_t * except)) {
486 //! volatile int xy = 0;
487 //! printf("%p %p %p %p\n", &try_block, &catch_block, &match_block, &xy);
488
489 // Setup the personality routine and exception table.
490 // Unforturnately these clobber gcc cancellation support which means we can't get access to
491 // the attribute cleanup tables at the same time. We would have to inspect the assembly to
492 // create a new set ourselves.
493#ifdef __PIC__
494 asm volatile (".cfi_personality 0x9b,CFA.ref.__gcfa_personality_v0");
495 asm volatile (".cfi_lsda 0x1b, .LLSDACFA2");
496#else
497 asm volatile (".cfi_personality 0x3,__gcfa_personality_v0");
498 asm volatile (".cfi_lsda 0x3, .LLSDACFA2");
499#endif
500
501 // Label which defines the start of the area for which the handler is setup.
502 asm volatile (".TRYSTART:");
503
504 // The actual statements of the try blocks
505 try_block();
506
507 // asm statement to prevent deadcode removal
508 asm volatile goto ("" : : : : CATCH );
509
510 // Normal return for when there is no throw.
511 return;
512
513 // Exceptionnal path
514 CATCH : __attribute__(( unused ));
515 // Label which defines the end of the area for which the handler is setup.
516 asm volatile (".TRYEND:");
517 // Label which defines the start of the exception landing pad. Basically what is called when
518 // the exception is caught. Note, if multiple handlers are given, the multiplexing should be
519 // done by the generated code, not the exception runtime.
520 asm volatile (".CATCH:");
521
522 // Exception handler
523 // Note: Saving the exception context on the stack breaks termination exceptions.
524 catch_block( EXCEPT_TO_NODE( this_exception_context()->current_exception )->handler_index,
525 this_exception_context()->current_exception );
526}
527
528// Exception table data we need to generate. While this is almost generic, the custom data refers
529// to {*}try_terminate, which is no way generic. Some more works need to be done if we want to
530// have a single call to the try routine.
531
532#ifdef __PIC__
533asm (
534 // HEADER
535 ".LFECFA1:\n"
536 " .globl __gcfa_personality_v0\n"
537 " .section .gcc_except_table,\"a\",@progbits\n"
538 // TABLE HEADER (important field is the BODY length at the end)
539 ".LLSDACFA2:\n"
540 " .byte 0xff\n"
541 " .byte 0xff\n"
542 " .byte 0x1\n"
543 " .uleb128 .LLSDACSECFA2-.LLSDACSBCFA2\n"
544 // BODY (language specific data)
545 // This uses language specific data and can be modified arbitrarily
546 // We use handled area offset, handled area length,
547 // handler landing pad offset and 1 (action code, gcc seems to use 0).
548 ".LLSDACSBCFA2:\n"
549 " .uleb128 .TRYSTART-__cfaehm_try_terminate\n"
550 " .uleb128 .TRYEND-.TRYSTART\n"
551 " .uleb128 .CATCH-__cfaehm_try_terminate\n"
552 " .uleb128 1\n"
553 ".LLSDACSECFA2:\n"
554 // TABLE FOOTER
555 " .text\n"
556 " .size __cfaehm_try_terminate, .-__cfaehm_try_terminate\n"
557);
558
559// Somehow this piece of helps with the resolution of debug symbols.
560__attribute__((unused)) static const int dummy = 0;
561
562asm (
563 // Add a hidden symbol which points at the function.
564 " .hidden CFA.ref.__gcfa_personality_v0\n"
565 " .weak CFA.ref.__gcfa_personality_v0\n"
566 // No clue what this does specifically
567 " .section .data.rel.local.CFA.ref.__gcfa_personality_v0,\"awG\",@progbits,CFA.ref.__gcfa_personality_v0,comdat\n"
568 " .align 8\n"
569 " .type CFA.ref.__gcfa_personality_v0, @object\n"
570 " .size CFA.ref.__gcfa_personality_v0, 8\n"
571 "CFA.ref.__gcfa_personality_v0:\n"
572#if defined( __x86_64 )
573 " .quad __gcfa_personality_v0\n"
574#else // then __i386
575 " .long __gcfa_personality_v0\n"
576#endif
577);
578#else // __PIC__
579asm (
580 // HEADER
581 ".LFECFA1:\n"
582 " .globl __gcfa_personality_v0\n"
583 " .section .gcc_except_table,\"a\",@progbits\n"
584 // TABLE HEADER (important field is the BODY length at the end)
585 ".LLSDACFA2:\n"
586 " .byte 0xff\n"
587 " .byte 0xff\n"
588 " .byte 0x1\n"
589 " .uleb128 .LLSDACSECFA2-.LLSDACSBCFA2\n"
590 // BODY (language specific data)
591 ".LLSDACSBCFA2:\n"
592 // Handled area start (relative to start of function)
593 " .uleb128 .TRYSTART-__cfaehm_try_terminate\n"
594 // Handled area length
595 " .uleb128 .TRYEND-.TRYSTART\n"
596 // Handler landing pad address (relative to start of function)
597 " .uleb128 .CATCH-__cfaehm_try_terminate\n"
598 // Action code, gcc seems to always use 0.
599 " .uleb128 1\n"
600 // TABLE FOOTER
601 ".LLSDACSECFA2:\n"
602 " .text\n"
603 " .size __cfaehm_try_terminate, .-__cfaehm_try_terminate\n"
604 " .ident \"GCC: (Ubuntu 6.2.0-3ubuntu11~16.04) 6.2.0 20160901\"\n"
605 " .section .note.GNU-stack,\"x\",@progbits\n"
606);
607#endif // __PIC__
608
609#pragma GCC pop_options
610#endif // __x86_64 || __i386
Note: See TracBrowser for help on using the repository browser.