From 9a70efaf1b3627d2d2ae4e4a5b17e5e246992ba6 Mon Sep 17 00:00:00 2001 From: Ivan Kuten Date: Fri, 9 Nov 2007 09:45:08 +0000 Subject: update binutils nios2 support, thanks atle --- .../binutils/2.15/701-nios2-gcc4-buildfix.patch | 20 ++++++++++++++++++++ toolchain/binutils/Config.in | 1 + 2 files changed, 21 insertions(+) create mode 100644 toolchain/binutils/2.15/701-nios2-gcc4-buildfix.patch diff --git a/toolchain/binutils/2.15/701-nios2-gcc4-buildfix.patch b/toolchain/binutils/2.15/701-nios2-gcc4-buildfix.patch new file mode 100644 index 000000000..bfc8015b8 --- /dev/null +++ b/toolchain/binutils/2.15/701-nios2-gcc4-buildfix.patch @@ -0,0 +1,20 @@ +--- 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) diff --git a/toolchain/binutils/Config.in b/toolchain/binutils/Config.in index 1f92eafef..c44bb449b 100644 --- a/toolchain/binutils/Config.in +++ b/toolchain/binutils/Config.in @@ -28,6 +28,7 @@ endchoice config BR2_BINUTILS_VERSION string + default "2.15" if BR2_nios2 default "2.17" if BR2_BINUTILS_VERSION_2_17 default "2.17.50.0.17" if BR2_BINUTILS_VERSION_2_17_50_0_17 default "2.18" if BR2_BINUTILS_VERSION_2_18 -- cgit v1.2.3