diff options
author | Nick Clifton <nickc@redhat.com> | 2021-02-24 10:08:56 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-02-24 10:08:56 +0000 |
commit | c74147bbe00a74b95365fb7fd6631924b1a3d11d (patch) | |
tree | 741d2c671db5e8ce08c3caf2f416218c9989adc6 /binutils/readelf.c | |
parent | 93af1b046b76380c1b06940c31581c30001d27de (diff) | |
download | gdb-c74147bbe00a74b95365fb7fd6631924b1a3d11d.zip gdb-c74147bbe00a74b95365fb7fd6631924b1a3d11d.tar.gz gdb-c74147bbe00a74b95365fb7fd6631924b1a3d11d.tar.bz2 |
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 9510a8d..811c529 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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: |