update the nios2-patches for binutils-2.15 and gcc-3.4.6 with the latest sources from Altera, and removes obsolete patches
This commit is contained in:
parent
cf825074e6
commit
7eb9574e2b
File diff suppressed because it is too large
Load Diff
@ -1,20 +0,0 @@
|
||||
--- binutils/gas/config/tc-nios2.c 2007/01/04 16:54:43 194
|
||||
+++ binutils/gas/config/tc-nios2.c 2007/01/04 16:58:16 195
|
||||
@@ -1661,7 +1661,7 @@
|
||||
|
||||
|
||||
/* apply the rightshift */
|
||||
- (signed) fixup >>= howto->rightshift;
|
||||
+ fixup >>= howto->rightshift;
|
||||
|
||||
/* truncate the fixup to right size */
|
||||
switch (fixP->fx_r_type)
|
||||
@@ -1706,7 +1706,7 @@
|
||||
nios2_check_overflow (valueT fixup, reloc_howto_type * howto)
|
||||
{
|
||||
/* apply the rightshift before checking for overflow */
|
||||
- (signed) fixup >>= howto->rightshift;
|
||||
+ fixup >>= howto->rightshift;
|
||||
|
||||
/* check for overflow - return TRUE if overflow, FALSE if not */
|
||||
switch (howto->complain_on_overflow)
|
@ -1,6 +1,6 @@
|
||||
--- elf2flt/elf2flt.ld
|
||||
+++ elf2flt/elf2flt.ld
|
||||
@@ -62,6 +62,10 @@
|
||||
@@ -63,12 +63,16 @@
|
||||
*(.eh_frame)
|
||||
*(.gcc_except_table)
|
||||
|
||||
@ -11,8 +11,6 @@
|
||||
/* Microblaze has .sdata and .sbss (small bss). They must
|
||||
be contiguous, so please don't move any of this. JW */
|
||||
_ssrw = . ;
|
||||
@@ -72,7 +72,7 @@
|
||||
_ssrw = . ;
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
- *(.sbss) /* Don't move this! */
|
||||
@ -20,6 +18,13 @@
|
||||
_essrw = . ;
|
||||
|
||||
_ssrw_size = _essrw - _ssrw;
|
||||
@@ -176,4 +180,6 @@
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
+ .debug_frame 0 : { *(.debug_frame) }
|
||||
+ .debug_str 0 : { *(.debug_str) }
|
||||
}
|
||||
--- elf2flt/ld-elf2flt.in
|
||||
+++ elf2flt/ld-elf2flt.in
|
||||
@@ -132,7 +132,7 @@
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,52 +0,0 @@
|
||||
Index: gcc/gcc/config/nios2/nios2.h
|
||||
===================================================================
|
||||
--- gcc/gcc/config/nios2/nios2.h (revision 195)
|
||||
+++ gcc/gcc/config/nios2/nios2.h (revision 196)
|
||||
@@ -88,8 +88,6 @@
|
||||
N_("All ld/st instructins do not use io variants (default)") }, \
|
||||
{ "smallc", 0, \
|
||||
N_("Link with a limited version of the C library") }, \
|
||||
- { "ctors-in-init", 0, \
|
||||
- "" /* undocumented: N_("Link with static constructors and destructors in init") */ }, \
|
||||
{ "", TARGET_DEFAULT, 0 } \
|
||||
}
|
||||
|
||||
@@ -140,12 +138,12 @@
|
||||
#define STARTFILE_SPEC \
|
||||
"%{msys-crt0=*: %*} %{!msys-crt0=*: crt1%O%s} \
|
||||
%{msys-crt0=: %eYou need a C startup file for -msys-crt0=} \
|
||||
- %{mctors-in-init: crti%O%s crtbegin%O%s} \
|
||||
+ crti%O%s crtbegin%O%s \
|
||||
"
|
||||
|
||||
#undef ENDFILE_SPEC
|
||||
#define ENDFILE_SPEC \
|
||||
- "%{mctors-in-init: crtend%O%s crtn%O%s}"
|
||||
+ " crtend%O%s crtn%O%s"
|
||||
|
||||
|
||||
/***********************
|
||||
Index: gcc/gcc/config/nios2/t-nios2
|
||||
===================================================================
|
||||
--- gcc/gcc/config/nios2/t-nios2 (revision 195)
|
||||
+++ gcc/gcc/config/nios2/t-nios2 (revision 196)
|
||||
@@ -36,18 +36,8 @@
|
||||
echo '' > ${DPBIT}
|
||||
cat $(srcdir)/config/fp-bit.c >> ${DPBIT}
|
||||
|
||||
-EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
|
||||
+EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
|
||||
|
||||
-# Assemble startup files.
|
||||
-$(T)crti.o: $(srcdir)/config/nios2/crti.asm $(GCC_PASSES)
|
||||
- $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
- -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/nios2/crti.asm
|
||||
-
|
||||
-$(T)crtn.o: $(srcdir)/config/nios2/crtn.asm $(GCC_PASSES)
|
||||
- $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
|
||||
- -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/nios2/crtn.asm
|
||||
-
|
||||
-
|
||||
## You may need to provide additional #defines at the beginning of
|
||||
## fp-bit.c and dp-bit.c to control target endianness and other options
|
||||
##
|
@ -1,19 +0,0 @@
|
||||
--- gcc-3.4.6/gcc/config/t-linux-uclibc 2007-11-07 14:50:34.000000000 +0100
|
||||
+++ /dev/null 2007-11-02 12:35:37.750656579 +0100
|
||||
@@ -1,5 +0,0 @@
|
||||
-# Remove glibc specific files added in t-linux
|
||||
-SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
|
||||
-
|
||||
-# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
|
||||
-LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
|
||||
--- gcc-3.4.6/gcc/config.gcc.orig 2007-11-07 14:50:34.000000000 +0100
|
||||
+++ gcc-3.4.6/gcc/config.gcc 2007-11-07 15:32:31.000000000 +0100
|
||||
@@ -2334,7 +2334,7 @@
|
||||
# Rather than hook into each target, just do it after all the linux
|
||||
# targets have been processed
|
||||
case ${target} in
|
||||
-*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc"
|
||||
+*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC"
|
||||
esac
|
||||
|
||||
# Support for --with-cpu and related options (and a few unrelated options,
|
@ -167,9 +167,6 @@ endif
|
||||
#ifeq ("$(strip $(ARCH))","i386")
|
||||
#toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc i386-gcc-soft-float.patch
|
||||
#endif
|
||||
endif
|
||||
ifeq ("$(strip $(ARCH))","nios2")
|
||||
toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) nios2-config-fix.patch.conditional
|
||||
endif
|
||||
touch $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user