Module Name: src
Committed By: christos
Date: Sat Apr 4 15:30:05 UTC 2020
Modified Files:
src/external/gpl3/binutils/dist/bfd: elf.c
Log Message:
Apply fix for --noinhibit-exec from:
https://www.mail-archive.com/[email protected]/msg33090.html
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/binutils/dist/bfd/elf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/bfd/elf.c
diff -u src/external/gpl3/binutils/dist/bfd/elf.c:1.15 src/external/gpl3/binutils/dist/bfd/elf.c:1.16
--- src/external/gpl3/binutils/dist/bfd/elf.c:1.15 Fri Apr 3 19:48:46 2020
+++ src/external/gpl3/binutils/dist/bfd/elf.c Sat Apr 4 11:30:05 2020
@@ -5948,7 +5948,11 @@ assign_file_positions_for_load_sections
_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.