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.
This commit is contained in:
Michael Matz
2017-05-07 04:41:40 +02:00
parent 600018ce47
commit 680e84fe42
5 changed files with 5 additions and 0 deletions

View File

@@ -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