X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Ftestplug2.c;h=14e14a6c8ac04e34a0fa94e2f99982461fd521b7;hb=6446511295653d9b18e940d1d4757ccbe358879e;hp=9b93dd8cae558964eb804873d98ce49246783d74;hpb=f58926a652e71cc4809758c693ff005d9fdc46e1;p=binutils-gdb.git diff --git a/ld/testplug2.c b/ld/testplug2.c index 9b93dd8cae5..14e14a6c8ac 100644 --- a/ld/testplug2.c +++ b/ld/testplug2.c @@ -1,6 +1,6 @@ /* Test plugin for the GNU linker. Check non-object IR file as well as get_input_file, get_view and release_input_file interfaces. - Copyright (C) 2015 Free Software Foundation, Inc. + Copyright (C) 2015-2019 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -602,7 +602,7 @@ onall_symbols_read (void) #define EXPECTED_VIEW "/* The first line of this file must match the expectation of" #define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1) if (file.filesize != SIZE_OF_FUNC_C - || SIZE_OF_FUNC_C < sizeof EXPECTED_VIEW_LENGTH + || SIZE_OF_FUNC_C < EXPECTED_VIEW_LENGTH || memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0) { char result[EXPECTED_VIEW_LENGTH + 1];