Browse Source

force to compile as little endian.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@881 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 years ago
parent
commit
d41f2f0830
2 changed files with 6 additions and 3 deletions
  1. 3 0
      bsp/jz47xx/jz47xx_ram.lds
  2. 3 3
      bsp/jz47xx/rtconfig.py

+ 3 - 0
bsp/jz47xx/jz47xx_ram.lds

@@ -13,6 +13,9 @@
  * 2010-08-23     bernard      change to jz47xx
  * 2010-08-23     bernard      change to jz47xx
  */
  */
 
 
+OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
+OUTPUT_ARCH(mips)
+
 ENTRY(_entry)
 ENTRY(_entry)
 SECTIONS
 SECTIONS
 {
 {

+ 3 - 3
bsp/jz47xx/rtconfig.py

@@ -68,9 +68,9 @@ OBJDUMP = PREFIX + 'objdump'
 OBJCPY = PREFIX + 'objcopy'
 OBJCPY = PREFIX + 'objcopy'
 
 
 DEVICE = ' -mips32 -msoft-float'
 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 = ''
 CPATH = ''
 LPATH = ''
 LPATH = ''