Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/bfd Apply fix for --noinhibit-ex...
details: https://anonhg.NetBSD.org/src/rev/b27989d30357
branches: trunk
changeset: 970803:b27989d30357
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 04 15:30:05 2020 +0000
description:
Apply fix for --noinhibit-exec from:
https://www.mail-archive.com/bug-binutils%gnu.org@localhost/msg33090.html
diffstat:
external/gpl3/binutils/dist/bfd/elf.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 8a9a666d3494 -r b27989d30357 external/gpl3/binutils/dist/bfd/elf.c
--- a/external/gpl3/binutils/dist/bfd/elf.c Sat Apr 04 14:49:35 2020 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf.c Sat Apr 04 15:30:05 2020 +0000
@@ -5948,7 +5948,11 @@
_bfd_error_handler (_("%pB: error: PHDR segment not covered"
" by LOAD segment"),
abfd);
- return FALSE;
+ if (link_info == NULL)
+ return FALSE;
+ /* Arrange for the linker to exit with an error, deleting
+ the output file unless --noinhibit-exec is given. */
+ link_info->callbacks->info ("%X");
}
/* Check that all sections are in a PT_LOAD segment.
Home |
Main Index |
Thread Index |
Old Index