public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd
@ 2015-01-17 21:07 Jan Kratochvil
  2015-01-23 16:55 ` Nicholas Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kratochvil @ 2015-01-17 21:07 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd
  2015-01-17 21:07 Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd Jan Kratochvil
@ 2015-01-23 16:55 ` Nicholas Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas Clifton @ 2015-01-23 16:55 UTC (permalink / raw)
  To: Jan Kratochvil, binutils

Hi Jan,

> ./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);

These should be fixed now.  Sorry about the snafu.

Cheers
  Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-23 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-17 21:07 Broken build: nlmconv.c: 32-bit host --enable-targets=all --enable-64-bit-bfd Jan Kratochvil
2015-01-23 16:55 ` Nicholas Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).