This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: efi-app-ia32 target is not working


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]