Changeset 656b789 in mainline
- Timestamp:
- 2009-03-16T22:58:11Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be6038b
- Parents:
- f36c061
- Files:
-
- 1 added
- 1 deleted
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/loader/Makefile
rf36c061 r656b789 37 37 endif 38 38 39 ifeq ($(IMAGE),binary)40 LD_IN = binary41 endif42 43 ifeq ($(IMAGE),ecoff)44 LD_IN = ecoff45 endif46 47 BFD_NAME = elf32-tradlittlemips48 39 BFD_ARCH = mips 49 40 TARGET = mipsel-linux-gnu 50 41 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin 42 43 ifeq ($(MACHINE),lgxemul) 44 BFD_NAME = elf32-tradlittlemips 45 BFD = ecoff-littlemips 46 endif 47 ifeq ($(MACHINE),bgxemul) 48 BFD_NAME = elf32-tradbigmips 49 BFD = ecoff-bigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin 51 TARGET = mips-linux-gnu 52 endif 53 ifeq ($(MACHINE),msim) 54 BFD_NAME = elf32-tradlittlemips 55 BFD = binary 56 endif 51 57 52 58 ifeq ($(COMPILER),gcc_native) … … 84 90 $(USPACEDIR)/srv/devmap/devmap \ 85 91 $(USPACEDIR)/srv/rd/rd \ 86 $(USPACEDIR)/srv/vfs/vfs 92 $(USPACEDIR)/srv/vfs/vfs 87 93 ifeq ($(RDFMT),tmpfs) 88 94 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs … … 115 121 -include Makefile.depend 116 122 117 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 118 $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ 123 image.boot: image.raw 124 $(OBJCOPY) -O $(BFD) $< $@ 125 126 image.raw: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 127 $(LD) -no-check-sections -N -T _link.ld -o $@ $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) 119 128 120 129 depend: … … 128 137 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 129 138 done 130 -rm -f _components.h _components.c _link.ld _link.ld.in $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.imgimage.boot Makefile.depend139 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.raw image.boot Makefile.depend 131 140 132 141 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in … … 147 156 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img 148 157 149 _link.ld.in: _link.ld.in.$(LD_IN)150 cp $< $@151 152 158 %.o: %.S 153 159 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ -
boot/arch/mips32/loader/_link.ld.in
rf36c061 r656b789 1 OUTPUT_FORMAT("binary") 2 ENTRY(start) 3 1 ENTRY(start) 2 4 3 SECTIONS { 5 4 .boot 0xbfc00000: AT (0) { … … 9 8 *(.rodata); 10 9 *(.rodata.*); 11 *(.data); 10 *(.data); /* initialized data */ 12 11 *(.sdata); 13 12 *(.sdata2); 14 13 *(.sbss); 15 14 *(.scommon); 16 *(.bss); /* uninitialized static variables */17 *(COMMON); 15 *(.bss); /* uninitialized static variables */ 16 *(COMMON); /* global variables */ 18 17 *(.reginfo); 19 18 [[COMPONENTS]] -
contrib/toolchain/toolchain.mipseb32.sh
rf36c061 r656b789 20 20 fi 21 21 22 BINUTILS_VERSION="2.19 "23 GCC_VERSION="4.3. 2"22 BINUTILS_VERSION="2.19.1" 23 GCC_VERSION="4.3.3" 24 24 25 25 BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz" … … 33 33 PLATFORM="mips" 34 34 WORKDIR=`pwd` 35 TARGET="${PLATFORM}- sgi-irix5"35 TARGET="${PLATFORM}-linux-gnu" 36 36 PREFIX="${CROSS_PREFIX}/${PLATFORM}" 37 37 BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" … … 85 85 cd "${BINUTILSDIR}" 86 86 check_error $? "Change directory failed." 87 patch -p1 <<EOF88 diff -Naur binutils-2.19.orig/bfd/elfxx-mips.c binutils-2.19/bfd/elfxx-mips.c89 --- binutils-2.19.orig/bfd/elfxx-mips.c 2008-08-18 20:14:04.000000000 +020090 +++ binutils-2.19/bfd/elfxx-mips.c 2009-01-18 18:14:47.292011299 +010091 @@ -1409,7 +1409,7 @@92 function, or 0 if we can't decide which function that is. */93 94 static unsigned long95 -mips16_stub_symndx (asection *sec, const Elf_Internal_Rela *relocs,96 +mips16_stub_symndx (asection *sec __attribute__((unused)), const Elf_Internal_Rela *relocs,97 const Elf_Internal_Rela *relend)98 {99 const Elf_Internal_Rela *rel;100 EOF101 check_error $? "Error patching binutils"102 87 ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls" 103 88 check_error $? "Error configuring binutils." -
kernel/arch/mips32/Makefile.inc
rf36c061 r656b789 31 31 32 32 BFD_ARCH = mips 33 BFD = binary 33 34 TARGET = mipsel-linux-gnu 34 35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel 35 36 36 GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss 37 GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3 37 38 38 39 DEFS += -D__32_BITS__ … … 43 44 ifeq ($(MACHINE),lgxemul) 44 45 BFD_NAME = elf32-tradlittlemips 45 BFD = binary46 GCC_CFLAGS += -mips347 46 endif 48 47 ifeq ($(MACHINE),bgxemul) 49 BFD_NAME = elf32-bigmips 50 BFD = ecoff-bigmips 48 BFD_NAME = elf32-tradbigmips 51 49 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips 52 TARGET = mips- sgi-irix553 GCC_CFLAGS += - EB -DBIG_ENDIAN -mips350 TARGET = mips-linux-gnu 51 GCC_CFLAGS += -DBIG_ENDIAN 54 52 endif 55 53 ifeq ($(MACHINE),msim) 56 54 BFD_NAME = elf32-tradlittlemips 57 BFD = binary 58 GCC_CFLAGS += -mhard-float -mips3 55 GCC_CFLAGS += -mhard-float 59 56 endif 60 57 -
uspace/lib/libc/arch/mips32eb/Makefile.inc
rf36c061 r656b789 30 30 # 31 31 32 TARGET = mips- sgi-irix532 TARGET = mips-linux-gnu 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin 34 CFLAGS += -mips3 34 CFLAGS += -mips3 35 35 36 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ … … 41 41 42 42 BFD_ARCH = mips 43 BFD_NAME = elf32- big43 BFD_NAME = elf32-tradbigmips
Note:
See TracChangeset
for help on using the changeset viewer.