Changeset 813ddca


Ignore:
Timestamp:
Jan 30, 2018, 2:03:06 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
2e9aed4
Parents:
24ed606
Message:

Interpose now replaces abort/segfault handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/interpose.c

    r24ed606 r813ddca  
    3333#include "startup.h"
    3434
    35 void interpose_startup(void)  __attribute__(( constructor( STARTUP_PRIORITY_CORE ) ));
     35void __cfaabi_interpose_startup(void)  __attribute__(( constructor( STARTUP_PRIORITY_CORE ) ));
    3636
    3737typedef void (*generic_fptr_t)(void);
     
    9292void sigHandler_abort( __CFA_SIGPARMS__ );
    9393
    94 void interpose_startup() {
     94void __cfaabi_interpose_startup() {
    9595        const char *version = NULL;
    9696
     
    9898        INIT_REALRTN( exit, version );
    9999
    100         __kernel_sigaction( SIGSEGV, sigHandler_segv     , SA_SIGINFO );      // Failure handler
    101         __kernel_sigaction( SIGBUS , sigHandler_segv     , SA_SIGINFO );      // Failure handler
     100        __kernel_sigaction( SIGSEGV, sigHandler_segv , SA_SIGINFO );      // Failure handler
     101        __kernel_sigaction( SIGBUS , sigHandler_segv , SA_SIGINFO );      // Failure handler
     102        __kernel_sigaction( SIGABRT, sigHandler_abort, SA_SIGINFO );      // Failure handler
    102103}
    103104
Note: See TracChangeset for help on using the changeset viewer.