Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Michael Brown committed Oct 13, 2008
1 parent 81d92c6 commit 64e5ca0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/arch/i386/scripts/efi.lds
Expand Up @@ -23,7 +23,7 @@ SECTIONS {
*
*/

.prefix : AT ( _prefix_lma ) {
.prefix : {
_prefix = .;
*(.prefix)
*(.prefix.*)
Expand All @@ -40,7 +40,7 @@ SECTIONS {
*/

. = ALIGN ( _max_align );
.text : AT ( _text_lma ) {
.text : {
_text = .;
*(.text)
*(.text.*)
Expand All @@ -57,7 +57,7 @@ SECTIONS {
*/

. = ALIGN ( _max_align );
.rodata : AT ( _rodata_lma ) {
.rodata : {
_rodata = .;
*(.rodata)
*(.rodata.*)
Expand All @@ -74,7 +74,7 @@ SECTIONS {
*/

. = ALIGN ( _max_align );
.data : AT ( _data_lma ) {
.data : {
_data = .;
*(.data)
*(.data.*)
Expand All @@ -98,7 +98,7 @@ SECTIONS {
*/

. = ALIGN ( _max_align );
.bss : AT ( _bss_lma ) {
.bss : {
_bss = .;
/* EFI seems to not support proper bss sections */
_mbss = .;
Expand All @@ -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.
Expand Down

0 comments on commit 64e5ca0

Please sign in to comment.