diff options
| author | bernard.xiong <[email protected]> | 2010-08-27 10:09:25 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-08-27 10:09:25 +0000 |
| commit | d41f2f0830adb848dc622c9c70448fc8cb22edaf (patch) | |
| tree | 343a9c4c29111e2979a6511173ce50d24052d7df | |
| parent | 726c787485b42d0bf94df313be9ce3d9ab10b6c5 (diff) | |
force to compile as little endian.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@881 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | bsp/jz47xx/jz47xx_ram.lds | 3 | ||||
| -rw-r--r-- | bsp/jz47xx/rtconfig.py | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/bsp/jz47xx/jz47xx_ram.lds b/bsp/jz47xx/jz47xx_ram.lds index ebea08a5c5..cbcbbffdc2 100644 --- a/bsp/jz47xx/jz47xx_ram.lds +++ b/bsp/jz47xx/jz47xx_ram.lds @@ -13,6 +13,9 @@ * 2010-08-23 bernard change to jz47xx */ +OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips") +OUTPUT_ARCH(mips) + ENTRY(_entry) SECTIONS { diff --git a/bsp/jz47xx/rtconfig.py b/bsp/jz47xx/rtconfig.py index 8246204e36..240a634474 100644 --- a/bsp/jz47xx/rtconfig.py +++ b/bsp/jz47xx/rtconfig.py @@ -68,9 +68,9 @@ OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mips32 -msoft-float'
-CFLAGS = DEVICE + ' -G0 -DRT_USING_MINILIBC -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer'
-AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
-LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-jz47xx.map,-cref,-u,Reset_Handler -T jz47xx_ram.lds'
+CFLAGS = DEVICE + ' -EL -G0 -DRT_USING_MINILIBC -mno-abicalls -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -fomit-frame-pointer'
+AFLAGS = ' -c' + DEVICE + ' -EL -x assembler-with-cpp'
+LFLAGS = DEVICE + ' -EL -Wl,--gc-sections,-Map=rtthread-jz47xx.map,-cref,-u,Reset_Handler -T jz47xx_ram.lds'
CPATH = ''
LPATH = ''
|
