diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 09:03:18 (GMT) |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 09:03:18 (GMT) |
commit | de25059404b630012eef050532a3f73f47c567c5 (patch) | |
tree | 305dfdf4e5aec40da51b97d587218bab857d47e0 | |
parent | 76d5763a4982b3d38a3b149c5ac987229262536a (diff) | |
download | u-boot-fsl-qoriq-de25059404b630012eef050532a3f73f47c567c5.tar.xz |
x86: Use TEXT_BASE in linker scripts
Use TEXT_BASE rather than a hard-coded base address on x86 linker scripts.
This will allow any board to define its base link address without having
to modify the linker script
-rw-r--r-- | board/eNET/u-boot.lds | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/eNET/u-boot.lds b/board/eNET/u-boot.lds index 7b0ffaa..d78d75f 100644 --- a/board/eNET/u-boot.lds +++ b/board/eNET/u-boot.lds @@ -27,7 +27,7 @@ ENTRY(_start) SECTIONS { - . = 0x06000000; /* Location of bootcode in flash */ + . = TEXT_BASE; /* Location of bootcode in flash */ _i386boot_text_start = .; .text : { *(.text); } @@ -98,12 +98,12 @@ SECTIONS * The fff0 offset of resetvec is important, however. */ . = 0xfffffe00; - .start32 : AT (0x0603fe00) { *(.start32); } + .start32 : AT (TEXT_BASE + 0x3fe00) { *(.start32); } . = 0xf800; - .start16 : AT (0x0603f800) { *(.start16); } + .start16 : AT (TEXT_BASE + 0x3f800) { *(.start16); } . = 0xfff0; - .resetvec : AT (0x0603fff0) { *(.resetvec); } + .resetvec : AT (TEXT_BASE + 0x3fff0) { *(.resetvec); } _i386boot_end = (LOADADDR(.resetvec) + SIZEOF(.resetvec) ); } |