Package: binutils
Version: 2.16.1cvs20050902-1
Severity: important
Tags: patch
Justification: fails to build from source
binutils ftbfs on arm/armeb due to some code in gas/config/tc-arm.c
triggering a warning and binutils being built with -Werror. The
attached patch fixes this issue on my armeb box.
-- System Information:
Debian Release: testing/unstable
APT prefers stable
APT policy: (500, 'stable')
Architecture: armeb (armv4b)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages binutils depends on:
ii libc6 2.3.5-6.1armeb GNU C Library: Shared libraries an
binutils recommends no packages.
-- no debconf information
--- binutils-2.16.1cvs20050902/gas/config/tc-arm.c.orig 2005-10-28
12:16:57.000000000 +0200
+++ binutils-2.16.1cvs20050902/gas/config/tc-arm.c 2005-10-28
12:17:44.000000000 +0200
@@ -11069,8 +11069,9 @@
if (value & 3)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("invalid offset, target not word aligned
(0x%08lX)"),
- (((unsigned int) fixP->fx_frag->fr_address
- + (unsigned int) fixP->fx_where) & ~3) + value);
+ (((unsigned long) fixP->fx_frag->fr_address
+ + (unsigned long) fixP->fx_where) & ~3)
+ + (unsigned long) value);
if (value & ~0x3fc)
as_bad_where (fixP->fx_file, fixP->fx_line,