From: Nick Clifton Date: Tue, 19 Mar 2024 15:16:43 +0000 (+0000) Subject: Remove redunant test of ELF size in core note decoder. X-Git-Tag: gdb-15-branchpoint~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696f6b6660a082a401494b4f499c3acf3ed59c93;p=thirdparty%2Fbinutils-gdb.git Remove redunant test of ELF size in core note decoder. PR 31469 --- diff --git a/binutils/readelf.c b/binutils/readelf.c index 6e3ac1baf6d..26e152fed93 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -20198,13 +20198,6 @@ print_core_note (Elf_Internal_Note *pnote) return true; } - if (!is_32bit_elf) - { - printf (_(" Cannot decode 64-bit note in 32-bit build\n")); - /* Still "successful". */ - return true; - } - if (pnote->descsz < 2 * addr_size) { error (_(" Malformed note - too short for header\n"));