]> git.sur5r.net Git - u-boot/blobdiff - board/eNET/u-boot.lds
x86: Use TEXT_BASE in linker scripts
[u-boot] / board / eNET / u-boot.lds
index 0d740215ce95c8f053a6929c468ae597a7af8d67..d78d75f2c5992b35d3718d26f3dfdf8a1a1fcd60 100644 (file)
@@ -27,7 +27,7 @@ ENTRY(_start)
 
 SECTIONS
 {
-       . = 0x38040000;         /* Location of bootcode in flash */
+       . = TEXT_BASE;          /* Location of bootcode in flash */
        _i386boot_text_start = .;
        .text  : { *(.text); }
 
@@ -97,14 +97,13 @@ SECTIONS
         * at reset and the code have to fit.
         * The fff0 offset of resetvec is important, however.
         */
-
        . = 0xfffffe00;
-       .start32 : AT (0x3807fe00) { *(.start32); }
+       .start32 : AT (TEXT_BASE + 0x3fe00) { *(.start32); }
 
        . = 0xf800;
-       .start16 : AT (0x3807f800) { *(.start16); }
+       .start16 : AT (TEXT_BASE + 0x3f800) { *(.start16); }
 
        . = 0xfff0;
-       .resetvec : AT (0x3807fff0) { *(.resetvec); }
+       .resetvec : AT (TEXT_BASE + 0x3fff0) { *(.resetvec); }
        _i386boot_end = (LOADADDR(.resetvec) + SIZEOF(.resetvec) );
 }