This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Update error message for non-PE format output files
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 22 Jun 2006 17:26:42 +0100
- Subject: Update error message for non-PE format output files
Hi Guys,
Whilst investigating PR 2757 I found that the error message we emit
when we are asked to generate a non PE format output file from PE
format input files is rather cryptic. So I am applying the patch
below to make it slightly more helpful.
Cheers
Nick
ld/ChangeLog
2006-06-22 Nick Clifton <nickc@redhat.com>
PR ld/2757
* emultempl/pe.em (gld_$_after_open): When reporting non PE format
output files mention the file name and the fact that it is an
output file.
Index: ld/emultempl/pe.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/pe.em,v
retrieving revision 1.116
diff -c -3 -p -r1.116 pe.em
*** ld/emultempl/pe.em 22 Jun 2006 13:48:30 -0000 1.116
--- ld/emultempl/pe.em 22 Jun 2006 16:23:02 -0000
*************** gld_${EMULATION_NAME}_after_open (void)
*** 983,989 ****
including an internal BFD header. */
if (coff_data (output_bfd) == NULL || coff_data (output_bfd)->pe == 0)
! einfo (_("%F%P: PE operations on non PE file.\n"));
pe_data (output_bfd)->pe_opthdr = pe;
pe_data (output_bfd)->dll = init[DLLOFF].value;
--- 983,989 ----
including an internal BFD header. */
if (coff_data (output_bfd) == NULL || coff_data (output_bfd)->pe == 0)
! einfo (_("%F%P: cannot perform PE operations on non PE output file '%B'.\n"), output_bfd);
pe_data (output_bfd)->pe_opthdr = pe;
pe_data (output_bfd)->dll = init[DLLOFF].value;