Changeset ad64520


Ignore:
Timestamp:
Jul 13, 2018, 5:53:21 PM (3 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, no_list, persistent-indexer
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.