Remove support for old v1 & v2 style GNU build notes.

* objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
	build notes.
	* readelf.c (print_gnu_build_attribute_description): Likewise.
This commit is contained in:
Nick Clifton
2021-02-24 10:08:56 +00:00
parent 93af1b046b
commit c74147bbe0
3 changed files with 10 additions and 28 deletions

View File

@@ -19907,17 +19907,8 @@ print_gnu_build_attribute_description (Elf_Internal_Note * pnote,
break;
case 8:
if (is_32bit_elf)
{
/* FIXME: We should check that version 3+ notes are being used here... */
start = byte_get ((unsigned char *) pnote->descdata, 4);
end = byte_get ((unsigned char *) pnote->descdata + 4, 4);
}
else
{
start = byte_get ((unsigned char *) pnote->descdata, 8);
end = 0;
}
start = byte_get ((unsigned char *) pnote->descdata, 4);
end = byte_get ((unsigned char *) pnote->descdata + 4, 4);
break;
case 16: