2013-02-21 Nigel Croxon * Change from Peter Jones - Previously we were incorrectly passing 3 functions with the System V ABI to UEFI functions as EFI ABI functions. Mark them as EFIAPI so the compiler will (in our new GNU_EFI_USE_MS_ABI world) use the correct ABI. - These need to be EFIAPI functions because in some cases they call ST->ConOut->OutputString(), which is an EFIAPI function. (Which means that previously in cases that needed "cdecl", these didn't work right.) - If the compiler version is new enough, and GNU_EFI_USE_MS_ABI is defined, use the function attribute ms_abi on everything defined with "EFIAPI". Such calls will no longer go through efi_call*, and as such will be properly type-checked. - Honor PREFIX and LIBDIR correctly when passed in during the build. - Add machine type defines for i386, arm/thumb, ia64, ebc, x86_64. - __STDC_VERSION__ never actually gets defined unless there's a --std=... line. So we were accidentally defining lots of c99 types ourself. Since it's 2012, use --std=c11 where appropriate, and if it's defined and we're using gcc, actually include gcc's stdint definitions. - New test application added: route80h. This is a test program for PciIo. It routes ioport 80h on ICH10 to PCI. This is also useful on a very limited set of hardware to enable use of a port 80h debug card. - New test applcation added: modelist. This lists video modes the GOP driver is showing us. * Change from Finnbarr Murphy - https://sourceforge.net/p/gnu-efi/feature-requests/2/ Please add the following status codes to EFI_INCOMPATIBLE_VERSION 25 EFI_SECURITY_VIOLATION 26 EFI_CRC_ERROR 27 EFI_END_OF_MEDIA 28 EFI_END_OF_FILE 31 EFI_INVALID_LANGUAGE 32 EFI_COMPROMISED_DATA 33 * Change from SourceForge.net Bug report - https://sourceforge.net/p/gnu-efi/bugs/5/ BufferSize is a UINT64 *. The file shipped with GNU EFI is from 1998 whereas the latest one is from 2004. I suspect Intel changed the API in order handle 64-bit systems. * Change from Felipe Contreras - The current code seems to screw the stack at certain points. Multiple people have complained that gummiboot hangs right away, which is in part the fault of gummiboot, but happens only because the stack gets screwed. x86_64 EFI already aligns the stack, so there's no need for so much code to find a proper alignment, we always need to shift by 8 anyway. * Change from A. Steinmetz - https://sourceforge.net/p/gnu-efi/patches/1/ The patch prepares for elilo to support uefi pxe over ipv6 See uefi spec 2.3.1 errata c page 963 as reference. Verfied on an ASUS Sabertooth X79 BIOS Rev. 2104 system which is able to do an IPv6 UEFI PXE boot. * Release 3.0t 2012-09-21 Nigel Croxon * Change from Peter Jones - EFI Block I/O protocol versions 2 and 3 provide more information regarding physical disk layout, including alingment offset at the beginning of the disk ("LowestAlignedLba"), logical block size ("LogicalBlocksPerPhysicalBlock"), and optimal block transfer size ("OptimalTransferLengthGranularity"). * Release 3.0r 2012-04-30 Nigel Croxon * Change from Matt Fleming - The .reloc section is now 4096-byte boundary for x86_64. Without this patch the .reloc section will not adhere to the alignment value in the FileAlignment field (512 bytes by default) of the PE/COFF header. This results in a signed executable failing to boot in a secure boot environment. * Release 3.0q 2011-12-12 Nigel Croxon * Changes from Fenghua Yu - This fixes redefined types compilation failure for tcc.c on x86_64 machines. * Release 3.0p 2011-11-15 Nigel Croxon * Changes from Darren Hart - Conditionally assign toolchain binaries to allow overriding them. - Force a dependency on lib for gnuefi. * Release 3.0n 2011-08-23 Nigel Croxon * Changes from Peter Jones - Add guarantee 16-byte stack alignment on x86_64. - Add routine to make callbacks work. - Add apps/tcc.efi to test calling convention. * Release 3.0m 2011-07-22 Nigel Croxon * Changed Makefiles from GPL to BSD. * Changes from Peter Jones - Add ifdefs for ia64 to mirror ia32 and x86-64 so that one can build with GCC. - Add headers for PciIo. - Add the UEFI 2.x bits for EFI_BOOT_SERVICES - Add an ignore for .note.GNU-stack section in X86-64 linker maps. * Release 3.0l 2011-04-07 Nigel Croxon * Change license from GPL to BSD. * Release 3.0j 2009-09-12 Julien BLACHE * Add support for FreeBSD. * Release 3.0i 2009-09-11 Julien BLACHE * Fix elf_ia32_efi.lds linker script to be compatible with the new linker behaviour. Patch from the RedHat bugzilla 492183. 2009-06-18 Nigel Croxon * Release 3.0h 2008-11-06 Nigel Croxon * Fix to not having any relocations at all. 2008-09-18 Nigel Croxon * Use LIBDIR in makefiles * Add setjmp/longjmp * Fixes incorrect section attribute in crt0-efi-ia32.S * Adds value EfiResetShutdown to enum EFI_RESET_TYPE * Fixes a RAW warning in reloc_ia64.S * Adds the USB HCI device path structure in the headers patches were supplied by Peter Jones @ RedHat 2008-02-22 Nigel Croxon * Added '-mno-red-zone' to x68_64 compiles. Patch provided by Mats Andersson. 2008-01-23 Nigel Croxon * release 3.0e to support x86_64 EFI calling convention, the stack should be aligned in 16 bytes to make it possible to use SSE2 in EFI boot services. This patch fixes this issue. Patch provided by Huang Ying from Intel. 2007-05-11 Nigel Croxon * release 3.0d to support x86_64 from Chandramouli Narayanan from Intel and based on 3.0c-1 2006-03-21 Stephane Eranian * merged patch to support gcc-4.1 submitted by Raymund Will from Novell/SuSE 2006-03-20 Stephane Eranian * updated ia-64 and ia-32 linker scripts to match latest gcc. The new gcc may put functions in .text* sections. patch submitted by H.J. Lu from Intel. 2004-11-19 Stephane Eranian * added patch to ignore .eh_frame section for IA-32. Patch submitted by Jim Wilson 2004-09-23 Stephane Eranian * added patch to discard unwind sections, newer toolchains complained about them. Patch submitted by Jesse Barnes from SGI. 2003-09-29 Stephane Eranian * updated elf_ia64_efi.lds to reflect new data sections created by gcc-3.3. Patch provided by Andreas Schwab from Suse. 2003-06-20 Stephane Eranian * updated elf_ia64_efi.lds and elf_ia32_efi.lds to include new types data sections produced by recent version of gcc-3.x 2002-02-22 Stephane Eranian * release 3.0a * modified both IA-64 and IA-32 loader scripts to add support for the new .rodata sections names (such as rodata.str2.8). Required for new versions of gcc3.x. 2001-06-20 Stephane Eranian * release 3.0 * split gnu-efi package in two different packages: the libary+include+crt and the bootloader. * removed W2U() hack and related files to get from wide-char to unicode. * Use -fshort-wchar option for unicode. * restructured Makefiles now install under INSTALLROOT. 2001-04-06 Stephane Eranian * incorporated patches from David and Michael Johnston at Intel to get the package to compile for IA-32 linux target. * Fixed ELILO to compile for Ia-32 (does not execute yet, though): Makefile and start_kernel() function. 2001-04-06 Andreas Schwab * Fixed config.c to get the timeout directive to do something. implemented the global root= directive. * Fix the efi_main() to deal with the -C option properly 2001-04-05 Stephane Eranian * update efi library to latest EFI toolkit 1.02 as distributed by Intel. Fixed header + library files to compile with GCC * merged ELI and LILO (as of gnu-efi-1.1) together, mostly taking the config file feature of ELI. * renamed LILO to ELILO to make the distinction * restructured code to make it easier to understand and maintain * fixed FPSWA driver checking and loading: we try all possible files and let the driver itself figure out if it is the most recent. * added support for compression (gzip) but keep support for plain ELF image. ELILO autodetects the format * change the way the kernel is invoked. Now we call it in physical memory mode. This breaks the dependency between the kernel code and the loader. No more lilo_start.c madness. * changed the way the boot_params are passed. We don't use the ZERO_PAGE_ADDR trick anymore. Instead we use EFI runtime memory. The address of the structure is passed to the kernel in r28 by our convention. * released as gnu-efi-2.0 2001-04-03 David Mosberger * gnuefi/reloc_ia32.c (_relocate): Change return type from "void" to "int". Return error status if relocation fails for some reason. * gnuefi/elf_ia32_efi.lds: Drop unneeded ".rel.reloc" section. * gnuefi/crt0-efi-ia32.S (_start): Exit if _relocate() returns with non-zero exit status. * inc/ia32/efibind.h [__GNUC__]: Force 8-byte alignment for 64-bit types as that is what EFI appears to be expecting, despite the "#pragma pack()" at the beginning of the file! 2001-03-29 David Mosberger * gnuefi/reloc_ia32.c: Add a couple of defines to work around libc/efilib collision on uint64_t et al. (_relocate): Use ELF32_R_TYPE() instead of ELFW(R_TYPE)(). * gnuefi/crt0-efi-ia32.S (dummy): Add a dummy relocation entry. 2001-03-29 David Mosberger * gnuefi/reloc_ia32.c: Add a couple of defines to work around libc/efilib collision on uint64_t et al. (_relocate): Use ELF32_R_TYPE() instead of ELFW(R_TYPE)(). * gnuefi/crt0-efi-ia32.S (dummy): Add a dummy relocation entry. 2000-10-26 David Mosberger * gnuefi/elf_ia64_efi.lds: Mention .rela.sdata. * Make.defaults (CFLAGS): Remove -nostdinc flags so we can pick up the C compiler's stdarg.h. * inc/stdarg.h: Remove this file. It's not correct for gcc (nor most other optimizing compilers). 2000-10-10 Stephane Eranian * cleaned up the error message and printing of those. * added support to load the FPSWA from a file in case support is not present in the firmware already * fixed split_args() to do the right thing when you have leading spaces before kernel name * changed the argify() function to rely on \0 instead of LoadOptionSize as the field seems to be broken with current firmware * bumped version to 1.0 2000-10-04 David Mosberger * gnuefi/reloc_ia64.S: Reserve space for up to 750 function descriptors. * gnuefi/elf_ia64_efi.lds: Add .sdata section for small data and put __gp in the "middle" of it. * gnuefi/crt0-efi-ia64.S (_start): Use movl/add to load gp-relative addresses that could be out of the range of the addl offset. * gnuefi/reloc_ia64.S (_relocate): Ditto. * apps/Makefile: Remove standard rules and include Make.rules instead. * lilo/Makefile: Ditto. * Make.rules: New file. 2000-08-04 Stephane Eranian * released version 0.9 * incorporated ACPI changes for Asuza by NEC < kouchi@hpc.bs1.fc.nec.co.jp> * added support for initrd (-i option) original ELI code from Bill Nottingham ) * lots of cleanups * got rid of #ifdef LILO_DEBUG and uses macro instead * fix a few extra memory leaks in create_boot_params() * added exit capability just before starting the kernel 2000-06-22 David Mosberger * gnuefi/elf_ia64_efi.lds: Add .srodata, .ctors, .IA64.unwind, .IA64.unwind_info to .data section and .rela.ctors to .rela section. 2000-04-03 David Mosberger * lilo/lilo.c (LILO_VERSION): Up version number to 0.9. * gnuefi/elf_ia64_efi.lds: Include .IA_64.unwind and .IA_64.unwind_info in .data segment to avoid EFI load error "ImageAddress: pointer outside of image" error due to the .dynsym relocations against these sections. * ChangeLog: Moved from lilo/ChangeLogs. * gnuefi/reloc_ia64.S: fixed typo: .space directive had constant 100 hardcoded instead of using MAX_FUNCTION_DESCRIPTORS macro. Duh. Fri Mar 17 15:19:18 PST 2000 Stephane Eranian * Released 0.8 * replace the getopt.c with new version free with better license * created a documentation file * fix a couple of memory leaks * code cleanups * created a separate directory for lilo in the gnu-efi package. * added support for the BOOT_IMAGE argument to kernel * default is to build natively now