-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdynamic.h
36 lines (29 loc) · 813 Bytes
/
dynamic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Author: Matthieu Carteron <[email protected]>
* date: 2024-07-17
*
* Alter ELF needed dependencies information (shrink to remove version).
*/
#ifndef DYNAMIC_H_INCLUDED
#define DYNAMIC_H_INCLUDED
#include "ldcache.h"
/* Special value to mean the removal of the property */
#define REMOVAL (char*)1
typedef enum
{
PRI_UNCHANGED,
PRI_RUNPATH,
PRI_RPATH
} Priority;
typedef enum
{
QU_NOTHING,
QU_NEEDED,
QU_MISSING,
QU_SONAME,
QU_RPATH,
QU_REPLACEMENT
} Query;
int dynamics_process(const LD_Cache *ldcache, const Priority priority, const char *filename, const char *output, const char *needOld, const char *needNew, const char *soname, const char *rpath, int fix);
int dynamics_query(const LD_Cache *ldcache, const char *filename, const Query query);
#endif