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 | |
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')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/objcopy.c | 19 | ||||
-rw-r--r-- | binutils/readelf.c | 13 |
3 files changed, 10 insertions, 28 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 42b6954..60c60d0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2021-02-24 Nick Clifton <nickc@redhat.com> + + * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU + build notes. + * readelf.c (print_gnu_build_attribute_description): Likewise. + 2021-02-24 Alan Modra <amodra@gmail.com> Siddhesh Poyarekar <siddhesh@gotplt.org> diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 90ae0bd..041acea 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -2246,23 +2246,8 @@ merge_gnu_build_notes (bfd * abfd, break; case 8: - if (! is_64bit (abfd)) - { - start = bfd_get_32 (abfd, pnote->note.descdata); - end = bfd_get_32 (abfd, pnote->note.descdata + 4); - } - else - { - start = bfd_get_64 (abfd, pnote->note.descdata); - /* FIXME: For version 1 and 2 notes we should try to - calculate the end address by finding a symbol whose - value is START, and then adding in its size. - - For now though, since v1 and v2 was not intended to - handle gaps, we chose an artificially large end - address. */ - end = (bfd_vma) -1; - } + start = bfd_get_32 (abfd, pnote->note.descdata); + end = bfd_get_32 (abfd, pnote->note.descdata + 4); break; case 16: 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: |