X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fivm%2Fu-boot.lds;h=4cca65274810f2ce42ab44d2a3e0e52d97213b95;hb=714afa64f3d81a660715b61785f1f3a3b986f852;hp=f4c6c981a7f7123c2cfed4b2da7838146d8a2c6b;hpb=cd0402a7307910fe34ca05c7921a69fcff9e1fd1;p=u-boot diff --git a/board/ivm/u-boot.lds b/board/ivm/u-boot.lds index f4c6c981a7..4cca652748 100644 --- a/board/ivm/u-boot.lds +++ b/board/ivm/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 : @@ -65,9 +66,11 @@ SECTIONS PROVIDE (edata = .); . = .; - __u_boot_cmd_start = .; - .u_boot_cmd : { *(.u_boot_cmd) } - __u_boot_cmd_end = .; + + . = ALIGN(4); + .u_boot_list : { + #include + } . = .; @@ -90,6 +93,6 @@ SECTIONS *(COMMON) . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }