Linker.h (668B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef Linker_h 6 #define Linker_h 7 8 #ifdef MOZ_LINKER 9 # include "ElfLoader.h" 10 # define __wrap_sigaction SEGVHandler::__wrap_sigaction 11 #else 12 # include <dlfcn.h> 13 # include <link.h> 14 # include <signal.h> 15 # define __wrap_sigaction sigaction 16 # define __wrap_dlopen dlopen 17 # define __wrap_dlerror dlerror 18 # define __wrap_dlsym dlsym 19 # define __wrap_dlclose dlclose 20 # define __wrap_dladdr dladdr 21 # define __wrap_dl_iterate_phdr dl_iterate_phdr 22 #endif 23 24 #endif