From 680e84fe42b66b92d9cbdcf5beffe4957c53b721 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 7 May 2017 04:41:40 +0200 Subject: 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. --- i386-link.c | 1 + 1 file changed, 1 insertion(+) (limited to 'i386-link.c') 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 -- cgit v1.3.1