X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fhymod%2Fu-boot.lds;h=5d1c2ad3cb62a9ec0c513733a0b8e3f9a467b973;hb=59dcf970d11ebff5d9f4bbbde79fda584e9e7ad4;hp=0897715a94ce9564d62e9d283196d7d08047359f;hpb=a47a12becf66f02a56da91c161e2edb625e9f20c;p=u-boot diff --git a/board/hymod/u-boot.lds b/board/hymod/u-boot.lds index 0897715a94..5d1c2ad3cb 100644 --- a/board/hymod/u-boot.lds +++ b/board/hymod/u-boot.lds @@ -87,13 +87,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - *(.got) _GOT2_TABLE_ = .; - *(.got2) + KEEP(*(.got2)) + KEEP(*(.got)) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; *(.fixup) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : @@ -109,9 +110,11 @@ SECTIONS PROVIDE (edata = .); . = .; - __u_boot_cmd_start = .; - .u_boot_cmd : { *(.u_boot_cmd) } - __u_boot_cmd_end = .; + + . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*))); + } . = .; @@ -140,6 +143,6 @@ SECTIONS common/env_embedded.o (.ppcenv) } . = ALIGN(4); - _end = . ; + __bss_end = . ; PROVIDE (end = .); }