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.
Unified · Split
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #define R_JMP_SLOT R_ARM_JUMP_SLOT |
| 9 | 9 | #define R_GLOB_DAT R_ARM_GLOB_DAT |
| 10 | 10 | #define R_COPY R_ARM_COPY |
| 11 | +#define R_RELATIVE R_ARM_RELATIVE | |
| 11 | 12 | |
| 12 | 13 | #define R_NUM R_ARM_NUM |
| 13 | 14 | |
| @@ -7,6 +7,7 @@ · 6 unmodified lines | ||
| 7 | 7 | #define R_JMP_SLOT R_AARCH64_JUMP_SLOT |
| 8 | 8 | #define R_GLOB_DAT R_AARCH64_GLOB_DAT |
| 9 | 9 | #define R_COPY R_AARCH64_COPY |
| 10 | +#define R_RELATIVE R_AARCH64_RELATIVE | |
| 10 | 11 | |
| 11 | 12 | #define R_NUM R_AARCH64_NUM |
| 12 | 13 | |
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #define R_JMP_SLOT R_C60_JMP_SLOT |
| 9 | 9 | #define R_GLOB_DAT R_C60_GLOB_DAT |
| 10 | 10 | #define R_COPY R_C60_COPY |
| 11 | +#define R_RELATIVE R_C60_RELATIVE | |
| 11 | 12 | |
| 12 | 13 | #define R_NUM R_C60_NUM |
| 13 | 14 | |
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #define R_JMP_SLOT R_386_JMP_SLOT |
| 9 | 9 | #define R_GLOB_DAT R_386_GLOB_DAT |
| 10 | 10 | #define R_COPY R_386_COPY |
| 11 | +#define R_RELATIVE R_386_RELATIVE | |
| 11 | 12 | |
| 12 | 13 | #define R_NUM R_386_NUM |
| 13 | 14 | |
| @@ -8,6 +8,7 @@ · 7 unmodified lines | ||
| 8 | 8 | #define R_JMP_SLOT R_X86_64_JUMP_SLOT |
| 9 | 9 | #define R_GLOB_DAT R_X86_64_GLOB_DAT |
| 10 | 10 | #define R_COPY R_X86_64_COPY |
| 11 | +#define R_RELATIVE R_X86_64_RELATIVE | |
| 11 | 12 | |
| 12 | 13 | #define R_NUM R_X86_64_NUM |
| 13 | 14 | |