diff options
author | Alan Modra <amodra@gmail.com> | 2019-10-26 13:09:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-10-26 13:11:02 +1030 |
commit | 1cc3da765d24068ef9046c19c9d23b1e69e30f6e (patch) | |
tree | 81544524104e3586297e2602d45c622456dd9ea5 /binutils | |
parent | 25294a18fd5dc027159ac7be8ba45f2f3c7426af (diff) | |
download | gdb-1cc3da765d24068ef9046c19c9d23b1e69e30f6e.zip gdb-1cc3da765d24068ef9046c19c9d23b1e69e30f6e.tar.gz gdb-1cc3da765d24068ef9046c19c9d23b1e69e30f6e.tar.bz2 |
sort_gnu_build_notes fix
* objcopy.c (sort_gnu_build_notes): Correct sort of deleted
note2.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/objcopy.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7a56ce4..b723f56 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2019-10-26 Alan Modra <amodra@gmail.com> + + * objcopy.c (sort_gnu_build_notes): Correct sort of deleted + note2. + 2019-10-25 H.J. Lu <hongjiu.lu@intel.com> * elfedit.c (elf_x86_feature): Report unknown x86 feature. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 47c5310..7bdd447 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -2067,7 +2067,7 @@ sort_gnu_build_notes (const void * data1, const void * data2) return -1; if (is_deleted_note (pnote2)) /* 1: F 2: O D */ - return 1; + return -1; return 1; /* 1: F 2: O */ } |