This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: efi-app-ia32 target is not working
- To: "Johnston, Michael" <michael dot johnston at intel dot com>
- Subject: Re: efi-app-ia32 target is not working
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 30 Mar 2001 08:13:55 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <D5E932F578EBD111AC3F00A0C96B1E6F061BDF2C@orsmsx31.jf.intel.com>
On Thu, Mar 29, 2001 at 03:16:57PM -0800, Johnston, Michael wrote:
> Using the binutils-010328 snapshot, the efi-app-ia32 target
> is not correct and is not recognized by EFI ia32.
>
> The subsystem ID in the file header is 00h (unspecified)
> and should be 0Ah (EFI application).
I checked in this patch to fix the typo.
>
> I forced this change in the binary and EFI will try to load
> it but there appear to be other problems with the image.
>
> I have compiled the same EFI test program using the Microsoft
> based tools and the GNU based tools and dumped the files using
> GNU objdump. The dumps are very different.
>
The EFI binaries generated by the Microsoft tools are different from
the GNU tools. Both should work. Please check out CVS and try again.
If it still doesn't work, remove
#define ALIGN_SECTIONS_IN_FILE
from efi-app-ia32.c and try again. Let us know if it works for you
or not. I don't have the resources and time to investigate it myself.
Thanks.
H.J.
----
2001-03-30 H.J. Lu <hjl@gnu.org>
* efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
(PEI_DEFAULT_TARGET_SUBSYSTEM): This.
Index: efi-app-ia32.c
===================================================================
RCS file: /cvs/src/src/bfd/efi-app-ia32.c,v
retrieving revision 1.2
diff -u -p -r1.2 efi-app-ia32.c
--- efi-app-ia32.c 2001/03/08 21:03:58 1.2
+++ efi-app-ia32.c 2001/03/30 16:07:39
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place - Suit
#define TARGET_UNDERSCORE '_'
#define COFF_LONG_SECTION_NAMES
#define ALIGN_SECTIONS_IN_FILE
-#define PEI_DEFAULT_TARGET_SUBSYSTEM IMAGE_SUBSYSTEM_EFI_APPLICATION
+#define PEI_TARGET_SUBSYSTEM IMAGE_SUBSYSTEM_EFI_APPLICATION
#define PEI_FORCE_MINIMUM_ALIGNMENT
#include "coff-i386.c"