4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:51:33 +08:00

Fixed undefined reference to 'dlmodule_relocate'

This is caused by #ifdef __x86__
For x86(32bit) gcc, pre-defined macro is __i386__ not __x86__.
This commit is contained in:
SASANO Takayoshi 2018-10-10 15:38:24 +09:00
parent c81ebdc6d9
commit 777554bb86

View File

@ -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 */