diff options
| author | Michael Matz <matz@suse.de> | 2017-05-07 04:41:40 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-05-07 04:41:40 +0200 |
| commit | 680e84fe42b66b92d9cbdcf5beffe4957c53b721 (patch) | |
| tree | 8acd24ff472661ed9cae338f552793f39a3e3adf | |
| parent | 600018ce474b1ecb7ea51f9fa0b005000ccc9101 (diff) | |
| download | tinycc-680e84fe42b66b92d9cbdcf5beffe4957c53b721.tar.gz tinycc-680e84fe42b66b92d9cbdcf5beffe4957c53b721.tar.bz2 | |
elf: Support STB_LOCAL dynamic symbols
local symbols can be resolved statically, they don't have to be
done dynamically, so this is a slight speedup at load time for
produced executables and shared libs. The musl libc also rejects
any STB_LOCAL symbols for dynamic symbol resolution, so there it
also fixes use of shared libs created by tcc.
| -rw-r--r-- | arm-link.c | 1 | ||||
| -rw-r--r-- | arm64-link.c | 1 | ||||
| -rw-r--r-- | c67-link.c | 1 | ||||
| -rw-r--r-- | i386-link.c | 1 | ||||
| -rw-r--r-- | x86_64-link.c | 1 |
5 files changed, 5 insertions, 0 deletions
@@ -8,6 +8,7 @@ #define R_JMP_SLOT R_ARM_JUMP_SLOT #define R_GLOB_DAT R_ARM_GLOB_DAT #define R_COPY R_ARM_COPY +#define R_RELATIVE R_ARM_RELATIVE #define R_NUM R_ARM_NUM diff --git a/arm64-link.c b/arm64-link.c index 179fb14..b2e12b6 100644 --- a/arm64-link.c +++ b/arm64-link.c @@ -7,6 +7,7 @@ #define R_JMP_SLOT R_AARCH64_JUMP_SLOT #define R_GLOB_DAT R_AARCH64_GLOB_DAT #define R_COPY R_AARCH64_COPY +#define R_RELATIVE R_AARCH64_RELATIVE #define R_NUM R_AARCH64_NUM @@ -8,6 +8,7 @@ #define R_JMP_SLOT R_C60_JMP_SLOT #define R_GLOB_DAT R_C60_GLOB_DAT #define R_COPY R_C60_COPY +#define R_RELATIVE R_C60_RELATIVE #define R_NUM R_C60_NUM diff --git a/i386-link.c b/i386-link.c index bb50297..b2ff492 100644 --- a/i386-link.c +++ b/i386-link.c @@ -8,6 +8,7 @@ #define R_JMP_SLOT R_386_JMP_SLOT #define R_GLOB_DAT R_386_GLOB_DAT #define R_COPY R_386_COPY +#define R_RELATIVE R_386_RELATIVE #define R_NUM R_386_NUM diff --git a/x86_64-link.c b/x86_64-link.c index 5f7cec3..7ab07b9 100644 --- a/x86_64-link.c +++ b/x86_64-link.c @@ -8,6 +8,7 @@ #define R_JMP_SLOT R_X86_64_JUMP_SLOT #define R_GLOB_DAT R_X86_64_GLOB_DAT #define R_COPY R_X86_64_COPY +#define R_RELATIVE R_X86_64_RELATIVE #define R_NUM R_X86_64_NUM |
