x86: bring up share object module on i386 machine

1. upddate kernel module to support i386
2. update libdl to support open *.so by absolute path
3. new test case bsp/x86/src/hello.c to test i386 module feature

Signed-off-by: parai <parai@foxmail.com>
This commit is contained in:
parai
2017-08-20 20:24:07 +08:00
parent 0cd49a20ad
commit 2957cf6f52
12 changed files with 167 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ BUILD = 'debug'
if PLATFORM == 'gcc':
# toolchains
PREFIX = ''
CC = PREFIX + 'gcc -m32 -fno-builtin -fno-stack-protector'
CC = PREFIX + 'gcc -m32 -fno-builtin -fno-stack-protector -nostdinc'
AS = PREFIX + 'gcc -m32'
AR = PREFIX + 'ar'
LINK = PREFIX + 'ld -melf_i386'