diff options
author | Nick Clifton <nickc@redhat.com> | 2014-04-24 15:49:37 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-04-24 15:49:37 +0100 |
commit | 08937d8023b1bd8d0b1c4d8b2f4a5951478c6ec3 (patch) | |
tree | d024cef31512ab83c519bb96fa9fa80225ccc36f | |
parent | 01f9f808e2e86187c95e7cff4aeb014a421a53ce (diff) | |
download | gdb-08937d8023b1bd8d0b1c4d8b2f4a5951478c6ec3.zip gdb-08937d8023b1bd8d0b1c4d8b2f4a5951478c6ec3.tar.gz gdb-08937d8023b1bd8d0b1c4d8b2f4a5951478c6ec3.tar.bz2 |
* peXXigen.c (rsrc_print_section): Fix compile time warning for
32-bit hosts.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/peXXigen.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index be151d0..f22dc90 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-04-24 Nick Clifton <nickc@redhat.com> + + * peXXigen.c (rsrc_print_section): Fix compile time warning for + 32-bit hosts. + 2014-04-24 Alan Modra <amodra@gmail.com> PR 16867 diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 5e97588..d462753 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -2383,9 +2383,11 @@ rsrc_print_section (bfd * abfd, void * vfile) } if (regions.strings_start != NULL) - fprintf (file, " String table starts at %lx\n", regions.strings_start - regions.section_start); + fprintf (file, " String table starts at %03x\n", + (int) (regions.strings_start - regions.section_start)); if (regions.resource_start != NULL) - fprintf (file, " Resources start at %lx\n", regions.resource_start - regions.section_start); + fprintf (file, " Resources start at %03xx\n", + (int) (regions.resource_start - regions.section_start)); free (regions.section_start); return TRUE; |