diff options
| author | SASANO Takayoshi <[email protected]> | 2018-10-10 15:38:24 +0900 |
|---|---|---|
| committer | SASANO Takayoshi <[email protected]> | 2018-10-10 15:38:24 +0900 |
| commit | 777554bb86f3c0f82254cf3319f1d3bdf1a400be (patch) | |
| tree | 0a490ebf8d0add80b018dc11151c8edc60c9bde6 /components/libc | |
| parent | c81ebdc6d9aff6bf21b7ce21c990d9ffc42c0902 (diff) | |
Fixed undefined reference to 'dlmodule_relocate'
This is caused by #ifdef __x86__
For x86(32bit) gcc, pre-defined macro is __i386__ not __x86__.
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/libdl/arch/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |
