diff --git include/stuff/allocate.h include/stuff/allocate.h
index 2c61b7b..b228a18 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | /* defined in allocate.c */ |
28 | 32 | |
29 | 33 | __private_extern__ void *allocate( |
diff --git include/stuff/arch.h include/stuff/arch.h
index 51e444f..95479fc 100644
|
|
|
26 | 26 | #if defined(__MWERKS__) && !defined(__private_extern__) |
27 | 27 | #define __private_extern__ __declspec(private_extern) |
28 | 28 | #endif |
| 29 | |
| 30 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 31 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 32 | #endif |
| 33 | |
29 | 34 | /* |
30 | 35 | * This file contains the current known set of flags and constants for the |
31 | 36 | * known architectures. |
diff --git include/stuff/best_arch.h include/stuff/best_arch.h
index 627aa5f..bb1bde3 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | #include <mach/machine.h> |
28 | 32 | #include <stuff/bool.h> |
29 | 33 | |
diff --git include/stuff/breakout.h include/stuff/breakout.h
index 211d792..9151f81 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | #import "stuff/ofile.h" |
28 | 32 | |
29 | 33 | /* |
diff --git include/stuff/bytesex.h include/stuff/bytesex.h
index c5d5ab1..d693634 100644
|
|
|
33 | 33 | #define __private_extern__ __declspec(private_extern) |
34 | 34 | #endif |
35 | 35 | |
| 36 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 37 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 38 | #endif |
| 39 | |
36 | 40 | #include <mach-o/fat.h> |
37 | 41 | #include <mach-o/loader.h> |
38 | 42 | #include <mach/m68k/thread_status.h> |
diff --git include/stuff/errors.h include/stuff/errors.h
index a2da7ce..9a67a25 100644
|
|
|
27 | 27 | */ |
28 | 28 | #import "mach/mach.h" |
29 | 29 | |
| 30 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 31 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 32 | #endif |
| 33 | |
30 | 34 | /* user defined (imported) */ |
31 | 35 | extern char *progname __attribute__((visibility("hidden"))); |
32 | 36 | |
diff --git include/stuff/execute.h include/stuff/execute.h
index e4987ac..c00eef8 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | /* |
28 | 32 | * execute() does an execvp using the argv passed to it. If the parameter |
29 | 33 | * verbose is non-zero the command is printed to stderr. A non-zero return |
diff --git include/stuff/hash_string.h include/stuff/hash_string.h
index 4ef3ff9..8dc66ba 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | __private_extern__ int32_t hash_string( |
28 | 32 | char *key); |
diff --git include/stuff/hppa.h include/stuff/hppa.h
index 757a16d..aa1efe5 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | __private_extern__ void calc_hppa_HILO( |
28 | 32 | uint32_t base, |
29 | 33 | uint32_t offset, |
diff --git include/stuff/llvm.h include/stuff/llvm.h
index 9f94ba1..3ba9a3b 100644
|
|
|
3 | 3 | |
4 | 4 | #include "llvm-c/Disassembler.h" |
5 | 5 | |
| 6 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 7 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 8 | #endif |
| 9 | |
6 | 10 | __private_extern__ LLVMDisasmContextRef llvm_create_disasm( |
7 | 11 | const char *TripleName, |
8 | 12 | const char *CPU, |
diff --git include/stuff/ofile.h include/stuff/ofile.h
index 44b3897..8372f7d 100644
|
|
|
28 | 28 | #define __private_extern__ __declspec(private_extern) |
29 | 29 | #endif |
30 | 30 | |
| 31 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 32 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 33 | #endif |
| 34 | |
31 | 35 | #import <ar.h> |
32 | 36 | #ifndef AR_EFMT1 |
33 | 37 | #define AR_EFMT1 "#1/" /* extended format #1 */ |
diff --git include/stuff/print.h include/stuff/print.h
index c075e99..e8a1bd3 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | #import <stdarg.h> |
28 | 32 | |
29 | 33 | __private_extern__ void print( |
diff --git include/stuff/reloc.h include/stuff/reloc.h
index 0922d0d..67011f1 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | #import <mach/machine.h> |
28 | 32 | #import "stuff/bool.h" |
29 | 33 | |
diff --git include/stuff/rnd.h include/stuff/rnd.h
index b51fa7e..7562ccd 100644
|
|
|
31 | 31 | #define __private_extern__ __declspec(private_extern) |
32 | 32 | #endif |
33 | 33 | |
| 34 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 35 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 36 | #endif |
| 37 | |
34 | 38 | /* |
35 | 39 | * rnd() rounds v to a multiple of r. |
36 | 40 | * |
diff --git include/stuff/symbol_list.h include/stuff/symbol_list.h
index ad338bb..555b97c 100644
|
|
|
23 | 23 | #include <mach-o/nlist.h> |
24 | 24 | #include <stuff/bool.h> |
25 | 25 | |
| 26 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 27 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 28 | #endif |
| 29 | |
26 | 30 | /* |
27 | 31 | * Data structures to perform selective stripping of symbol table entries. |
28 | 32 | */ |
diff --git include/stuff/unix_standard_mode.h include/stuff/unix_standard_mode.h
index 7d77532..b33bd72 100644
|
|
|
22 | 22 | */ |
23 | 23 | #include "stuff/bool.h" |
24 | 24 | |
| 25 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 26 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 27 | #endif |
| 28 | |
25 | 29 | __private_extern__ enum bool get_unix_standard_mode( |
26 | 30 | void); |
diff --git include/stuff/vm_flush_cache.h include/stuff/vm_flush_cache.h
index 16a2d47..f6bf27e 100644
|
|
|
24 | 24 | #define __private_extern__ __declspec(private_extern) |
25 | 25 | #endif |
26 | 26 | |
| 27 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 28 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 29 | #endif |
| 30 | |
27 | 31 | #import <mach/mach.h> |
28 | 32 | __private_extern__ kern_return_t vm_flush_cache( |
29 | 33 | mach_port_t target_task, |
diff --git libstuff/crc32.c libstuff/crc32.c
index ac361f9..c5ab7d1 100644
|
|
static const u_int32_t crctab[] = { |
115 | 115 | |
116 | 116 | #define COMPUTE(var, ch) (var) = (var) << 8 ^ crctab[(var) >> 24 ^ (ch)] |
117 | 117 | |
| 118 | #if defined(__GNUC__) && !defined(__private_extern__) |
| 119 | #define __private_extern__ __attribute__((visibility("hidden"))) |
| 120 | #endif |
| 121 | |
118 | 122 | __private_extern__ |
119 | 123 | uint32_t |
120 | 124 | crc32( |