source: libcfa/src/exception.c@ c354108

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since c354108 was 80ec409, checked in by Andrew Beach <ajbeach@…>, 5 years ago

The exception context is now stored on the stack. It is not used just yet.

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