X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2FRPXlite_dw%2Fu-boot.lds;h=9133469f0c4926f8b88c22102ff11426bd48d3b7;hb=556751427b9b79266918e87f7399e1a6eea60096;hp=fbd901a3c309020d3432a1c19e8fda6d3cb96b67;hpb=52eb2c79110151b9017a0829c4d44ee7b8e2ca04;p=u-boot diff --git a/board/RPXlite_dw/u-boot.lds b/board/RPXlite_dw/u-boot.lds index fbd901a3c3..9133469f0c 100644 --- a/board/RPXlite_dw/u-boot.lds +++ b/board/RPXlite_dw/u-boot.lds @@ -47,13 +47,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 : @@ -69,6 +70,11 @@ SECTIONS .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; + . = ALIGN(4); + .u_boot_list : { + #include + } + . = .; __start___ex_table = .; @@ -90,6 +96,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }