|
|
@ -28,9 +28,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
Pyry Haulos <pyry.haulos@gmail.com>
|
|
|
|
Pyry Haulos <pyry.haulos@gmail.com>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <elf.h>
|
|
|
|
#include <elf.h>
|
|
|
|
#include <link.h>
|
|
|
|
#include <link.h>
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
extern "C" {
|
|
|
@ -38,10 +39,9 @@ extern "C" {
|
|
|
|
|
|
|
|
|
|
|
|
#define __PUBLIC __attribute__ ((visibility ("default")))
|
|
|
|
#define __PUBLIC __attribute__ ((visibility ("default")))
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __x86_64__
|
|
|
|
#if UINTPTR_MAX == 0xffffffffffffffff
|
|
|
|
# define __elf64
|
|
|
|
# define __elf64
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#ifdef __i386__
|
|
|
|
|
|
|
|
# define __elf32
|
|
|
|
# define __elf32
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|