X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fstrings.c;h=dc42a6f2f904a75aa41313ab0e8fc71391101945;hb=7ab967941150b2f79fc089893bf51e6bb53d245b;hp=fedfee9057657943115d260ca315db704f7131da;hpb=7ca166c9408599e64c0cd3c5d3f0d00c8fae2d9e;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/strings.c b/binutils/strings.c index fedfee9057..dc42a6f2f9 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -1,5 +1,5 @@ /* strings -- print the strings of printable characters in files - Copyright (C) 1993-2018 Free Software Foundation, Inc. + Copyright (C) 1993-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -332,7 +332,7 @@ strings_a_section (bfd *abfd, asection *sect, const char *filename, if ((sect->flags & DATA_FLAGS) != DATA_FLAGS) return; - sectsize = bfd_get_section_size (sect); + sectsize = bfd_section_size (sect); if (sectsize == 0) return; @@ -633,7 +633,7 @@ print_strings (const char *filename, FILE *stream, file_ptr address, if (sizeof (start) > sizeof (long)) { # ifndef __MSVCRT__ - printf ("%7lld ", (unsigned long long) start); + printf ("%7llu ", (unsigned long long) start); # else printf ("%7I64d ", (unsigned long long) start); # endif @@ -641,7 +641,7 @@ print_strings (const char *filename, FILE *stream, file_ptr address, else #elif !BFD_HOST_64BIT_LONG if (start != (unsigned long) start) - printf ("++%7ld ", (unsigned long) start); + printf ("++%7lu ", (unsigned long) start); else #endif printf ("%7ld ", (long) start);