mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
Fix a problem merging empty annobin notes on ppc64le targets.
* objcopy.c (merge_gnu_build_notes): Handle notes with a start address that is higher than the end address.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2021-02-18 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* objcopy.c (merge_gnu_build_notes): Handle notes with a start
|
||||
address that is higher than the end address.
|
||||
|
||||
2021-02-17 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* dwarf.c: Include limits.h.
|
||||
|
||||
@@ -2275,6 +2275,11 @@ merge_gnu_build_notes (bfd * abfd,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (start > end)
|
||||
/* This can happen with PPC64LE binaries where empty notes are
|
||||
encoded as start = end + 4. */
|
||||
start = end;
|
||||
|
||||
if (is_open_note (pnote))
|
||||
{
|
||||
if (start)
|
||||
|
||||
Reference in New Issue
Block a user