History

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.

Michael Matz committed 9 years ago

Commit 680e84f1 parent 600018c5 files · +5 −0Browse files

Unified · Split

5 files
  1. arm-link.c +1 −0
  2. arm64-link.c +1 −0
  3. c67-link.c +1 −0
  4. i386-link.c +1 −0
  5. x86_64-link.c +1 −0
arm-link.c+1−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #define R_JMP_SLOT R_ARM_JUMP_SLOT
99 #define R_GLOB_DAT R_ARM_GLOB_DAT
1010 #define R_COPY R_ARM_COPY
11+#define R_RELATIVE R_ARM_RELATIVE
1112
1213 #define R_NUM R_ARM_NUM
1314
arm64-link.c+1−0
@@ -7,6 +7,7 @@ · 6 unmodified lines
77 #define R_JMP_SLOT R_AARCH64_JUMP_SLOT
88 #define R_GLOB_DAT R_AARCH64_GLOB_DAT
99 #define R_COPY R_AARCH64_COPY
10+#define R_RELATIVE R_AARCH64_RELATIVE
1011
1112 #define R_NUM R_AARCH64_NUM
1213
c67-link.c+1−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #define R_JMP_SLOT R_C60_JMP_SLOT
99 #define R_GLOB_DAT R_C60_GLOB_DAT
1010 #define R_COPY R_C60_COPY
11+#define R_RELATIVE R_C60_RELATIVE
1112
1213 #define R_NUM R_C60_NUM
1314
i386-link.c+1−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #define R_JMP_SLOT R_386_JMP_SLOT
99 #define R_GLOB_DAT R_386_GLOB_DAT
1010 #define R_COPY R_386_COPY
11+#define R_RELATIVE R_386_RELATIVE
1112
1213 #define R_NUM R_386_NUM
1314
x86_64-link.c+1−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #define R_JMP_SLOT R_X86_64_JUMP_SLOT
99 #define R_GLOB_DAT R_X86_64_GLOB_DAT
1010 #define R_COPY R_X86_64_COPY
11+#define R_RELATIVE R_X86_64_RELATIVE
1112
1213 #define R_NUM R_X86_64_NUM
1314

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t