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/5c36f11609b9
branches:  trunk
changeset: 1008838:5c36f11609b9
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 b1d3014c9d69 -r 5c36f11609b9 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