aboutsummaryrefslogtreecommitdiff
path: root/c67-link.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-05-07 04:41:40 +0200
committerMichael Matz <matz@suse.de>2017-05-07 04:41:40 +0200
commit680e84fe42b66b92d9cbdcf5beffe4957c53b721 (patch)
tree8acd24ff472661ed9cae338f552793f39a3e3adf /c67-link.c
parent600018ce474b1ecb7ea51f9fa0b005000ccc9101 (diff)
downloadtinycc-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.
Diffstat (limited to 'c67-link.c')
-rw-r--r--c67-link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c67-link.c b/c67-link.c
index 32610e0..4b22fd9 100644
--- a/c67-link.c
+++ b/c67-link.c
@@ -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