diff options
author | Michael Brown | 2008-10-13 11:41:38 +0200 |
---|---|---|
committer | Michael Brown | 2008-10-13 11:41:38 +0200 |
commit | 64e5ca0582a54078e789ae36f5b62e0034503323 (patch) | |
tree | 5d262f1945b126e141be9174cd63624aefc0785b /src/arch/i386/scripts | |
parent | [efi] Add EFI image format and basic runtime environment (diff) | |
download | ipxe-64e5ca0582a54078e789ae36f5b62e0034503323.tar.gz ipxe-64e5ca0582a54078e789ae36f5b62e0034503323.tar.xz ipxe-64e5ca0582a54078e789ae36f5b62e0034503323.zip |
[efi] Fix linker script for ld 2.17.50.0.9
Some versions of ld choke on the "AT ( _xxx_lma )" in efi.lds with an
error saying "nonconstant expression for load base". Since these were
only explicitly setting the LMA to the address that it would have had
anyway, they can be safely omitted.
Diffstat (limited to 'src/arch/i386/scripts')
-rw-r--r-- | src/arch/i386/scripts/efi.lds | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/i386/scripts/efi.lds b/src/arch/i386/scripts/efi.lds index 8d9ecd77..7d3281cc 100644 --- a/src/arch/i386/scripts/efi.lds +++ b/src/arch/i386/scripts/efi.lds @@ -23,7 +23,7 @@ SECTIONS { * */ - .prefix : AT ( _prefix_lma ) { + .prefix : { _prefix = .; *(.prefix) *(.prefix.*) @@ -40,7 +40,7 @@ SECTIONS { */ . = ALIGN ( _max_align ); - .text : AT ( _text_lma ) { + .text : { _text = .; *(.text) *(.text.*) @@ -57,7 +57,7 @@ SECTIONS { */ . = ALIGN ( _max_align ); - .rodata : AT ( _rodata_lma ) { + .rodata : { _rodata = .; *(.rodata) *(.rodata.*) @@ -74,7 +74,7 @@ SECTIONS { */ . = ALIGN ( _max_align ); - .data : AT ( _data_lma ) { + .data : { _data = .; *(.data) *(.data.*) @@ -98,7 +98,7 @@ SECTIONS { */ . = ALIGN ( _max_align ); - .bss : AT ( _bss_lma ) { + .bss : { _bss = .; /* EFI seems to not support proper bss sections */ _mbss = .; @@ -114,7 +114,7 @@ SECTIONS { */ . = ALIGN ( _max_align ); - .reloc : AT ( _reloc_lma ) { + .reloc : { _reloc = .; /* Provide some dummy contents to force ld to include this * section. It will be created by the efilink utility. |