]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/cpu/u-boot.lds
ppc4xx: remove ASH405 board
[u-boot] / arch / mips / cpu / u-boot.lds
index 4c9edf8a6928178a16386c8307167b2df9ad3a86..7d71c11ae4c6cfa5ff1aa22df51a20d4ceb16bc0 100644 (file)
@@ -53,6 +53,7 @@ SECTIONS
 
        . = ALIGN(4);
        __image_copy_end = .;
+       __init_end = .;
 
        .rel.dyn : {
                __rel_dyn_start = .;
@@ -60,6 +61,24 @@ SECTIONS
                __rel_dyn_end = .;
        }
 
+       .padding : {
+               /*
+                * Workaround for a binutils feature (or bug?).
+                *
+                * The GNU ld from binutils puts the dynamic relocation
+                * entries into the .rel.dyn section. Sometimes it
+                * allocates more dynamic relocation entries than it needs
+                * and the unused slots are set to R_MIPS_NONE entries.
+                *
+                * However the size of the .rel.dyn section in the ELF
+                * section header does not cover the unused entries, so
+                * objcopy removes those during stripping.
+                *
+                * Create a small section here to avoid that.
+                */
+               LONG(0xFFFFFFFF)
+       }
+
        _end = .;
 
        .bss __rel_dyn_start (OVERLAY) : {