From: Alan Modra Date: Sat, 26 Oct 2019 02:39:44 +0000 (+1030) Subject: sort_gnu_build_notes fix X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1cc3da765d24068ef9046c19c9d23b1e69e30f6e;p=deliverable%2Fbinutils-gdb.git sort_gnu_build_notes fix * objcopy.c (sort_gnu_build_notes): Correct sort of deleted note2. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7a56ce4abd..b723f56939 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2019-10-26 Alan Modra + + * objcopy.c (sort_gnu_build_notes): Correct sort of deleted + note2. + 2019-10-25 H.J. Lu * elfedit.c (elf_x86_feature): Report unknown x86 feature. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 47c5310f2b..7bdd447893 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 */ }