Changeset ad64520 for src


Ignore:
Timestamp:
Jul 13, 2018, 5:53:21 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
ae144af
Parents:
2e02851
Message:

Now loading libgcc_s at startup to help avoid problems on abort

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/interpose.c

    r2e02851 rad64520  
    3333// Interposing helpers
    3434//=============================================================================================
     35
     36void preload_libgcc(void) {
     37        dlopen( "libgcc_s.so.1", RTLD_NOW );
     38        if ( const char * error = dlerror() ) abort( "interpose_symbol : internal error pre-loading libgcc, %s\n", error );
     39}
    3540
    3641typedef void (* generic_fptr_t)(void);
     
    9297                const char *version = NULL;
    9398
     99                preload_libgcc();
     100
    94101#pragma GCC diagnostic push
    95102#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
Note: See TracChangeset for help on using the changeset viewer.