X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fspd8xx%2Fu-boot.lds;h=a84e7fd35b90df98ba5678787e42a5671fe5fbff;hb=5c8d14dfd978eb787307298110a32329e989e6ab;hp=b9dd8b719a859d5ba5e477b737a7391600f67331;hpb=ac8983bcba75576c50307b5e8dc8fb848740ee61;p=u-boot diff --git a/board/spd8xx/u-boot.lds b/board/spd8xx/u-boot.lds index b9dd8b719a..a84e7fd35b 100644 --- a/board/spd8xx/u-boot.lds +++ b/board/spd8xx/u-boot.lds @@ -36,7 +36,6 @@ SECTIONS arch/powerpc/cpu/mpc8xx/traps.o (.text*) net/libnet.o (.text*) arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*) - board/spd8xx/libspd8xx.o (.text*) *(.text.v*printf) . = DEFINED(env_offset) ? env_offset : .; @@ -57,13 +56,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - KEEP(*(.got)) _GOT2_TABLE_ = .; KEEP(*(.got2)) + KEEP(*(.got)) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; KEEP(*(.fixup)) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : @@ -100,6 +100,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }