This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: binutils at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Sat, 17 Jan 2015 22:07:23 +0100
- Subject: Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd
- Authentication-results: sourceware.org; auth=none
Hi,
commit 3565cf8fedf2bae2b383fae66dde62c3bdae51c9
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Jan 8 12:37:46 2015 +0000
Fixes for memory access violations triggered by running nlmconv on
fuzzed binaries.
PR binutils/17512
Fedora 22 i386 (32-bit host):
./configure --enable-targets=all --enable-64-bit-bfd;make
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../bfd -I./../include -DLOCALEDIR="\"/usr/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT nlmconv.o -MD -MP -MF .deps/nlmconv.Tpo -c -o nlmconv.o \
-DLD_NAME="\"${ldname}\"" -DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC ./nlmconv.c
./nlmconv.c: In function ‘powerpc_mangle_relocs’:
./nlmconv.c:1939:5: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_size_type’ [-Werror=format=]
non_fatal (_("Out of range relocation: %lx"), rel->address);
^
./nlmconv.c:1994:5: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_size_type’ [-Werror=format=]
non_fatal (_("Out of range relocation: %lx"), rel->address);
^
./nlmconv.c:2016:5: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘bfd_size_type’ [-Werror=format=]
non_fatal (_("Out of range relocation: %lx"), rel->address);
^
cc1: all warnings being treated as errors
Makefile:1442: recipe for target 'nlmconv.o' failed
Jan