From 777554bb86f3c0f82254cf3319f1d3bdf1a400be Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Wed, 10 Oct 2018 15:38:24 +0900 Subject: [PATCH] Fixed undefined reference to 'dlmodule_relocate' This is caused by #ifdef __x86__ For x86(32bit) gcc, pre-defined macro is __i386__ not __x86__. --- components/libc/libdl/arch/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/libc/libdl/arch/x86.c b/components/libc/libdl/arch/x86.c index 4f70b1d22e..16f2322fb4 100644 --- a/components/libc/libdl/arch/x86.c +++ b/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 */