sort_gnu_build_notes fix
authorAlan Modra <amodra@gmail.com>
Sat, 26 Oct 2019 02:39:44 +0000 (13:09 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 26 Oct 2019 02:41:02 +0000 (13:11 +1030)
* objcopy.c (sort_gnu_build_notes): Correct sort of deleted
note2.

binutils/ChangeLog
binutils/objcopy.c

index 7a56ce4abdc974a500d71046f8c78f11f9c96e43..b723f56939076147da9fd7404252d97e5f0b6537 100644 (file)
@@ -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.
index 47c5310f2baee663d440213fafa0b483a1e4e49c..7bdd4478931d68c2d925ae826e219da1596c90d9 100644 (file)
@@ -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   */
     }