]> git.sur5r.net Git - u-boot/commitdiff
x86: Ensure that all relocation data is included in the image
authorSimon Glass <sjg@chromium.org>
Sat, 15 Nov 2014 01:18:24 +0000 (18:18 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 13:33:59 +0000 (06:33 -0700)
Some toolchains put the relocation data into separate sections. Adjust the
linker script to catch this case. Without relocation data, U-Boot will not
boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/u-boot.lds

index f48bff54e10347995a2b48b85b648bdda1790ab9..124a361fc0e8f6b3ef4b1269412b37731a759c28 100644 (file)
@@ -44,7 +44,9 @@ SECTIONS
 
        . = ALIGN(4);
        __rel_dyn_start = .;
-       .rel.dyn : { *(.rel.dyn) }
+       .rel.dyn : {
+               *(.rel*)
+       }
        __rel_dyn_end = .;
        . = ALIGN(4);
        _end = .;