Browse Source

Fixed undefined reference to 'dlmodule_relocate'
This is caused by #ifdef __x86__
For x86(32bit) gcc, pre-defined macro is __i386__ not __x86__.

SASANO Takayoshi 6 years ago
parent
commit
777554bb86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/libc/libdl/arch/x86.c

+ 1 - 1
components/libc/libdl/arch/x86.c

@@ -11,7 +11,7 @@
 #include "../dlmodule.h"
 #include "../dlelf.h"
 
-#ifdef __x86__
+#ifdef __i386__
 
 #define R_X86_64_GLOB_DAT	6	/* Create GOT entry */
 #define R_X86_64_JUMP_SLOT	7	/* Create PLT entry */