X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Frsdproto%2Fu-boot.lds;h=a729c52626661f702b4409e11dfff2603f649c03;hb=8603b69b8b04e3e34f8744b396c62833b78fd7c1;hp=07a7277c830e85a2dcb1cd20f57651250ca33838;hpb=0ad4770f8eb052a84800925ea4ab342cfc10dc32;p=u-boot diff --git a/board/rsdproto/u-boot.lds b/board/rsdproto/u-boot.lds index 07a7277c83..a729c52626 100644 --- a/board/rsdproto/u-boot.lds +++ b/board/rsdproto/u-boot.lds @@ -52,9 +52,8 @@ SECTIONS .plt : { *(.plt) } .text : { - cpu/mpc8260/start.o (.text) + arch/powerpc/cpu/mpc8260/start.o (.text) *(.text) - *(.fixup) *(.got1) /*. = env_offset; */ } @@ -62,10 +61,8 @@ SECTIONS PROVIDE (etext = .); .rodata : { - *(.rodata) - *(.rodata1) - *(.rodata.str1.4) *(.eh_frame) + *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } .fini : { *(.fini) } =0 .ctors : { *(.ctors) } @@ -77,13 +74,14 @@ SECTIONS PROVIDE (erotext = .); .reloc : { - *(.got) _GOT2_TABLE_ = .; - *(.got2) + KEEP(*(.got2)) + KEEP(*(.got)) + PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4); _FIXUP_TABLE_ = .; - *(.fixup) + KEEP(*(.fixup)) } - __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; + __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1; __fixup_entries = (. - _FIXUP_TABLE_)>>2; .data : @@ -123,7 +121,8 @@ SECTIONS *(.dynbss) *(.bss) *(COMMON) + . = ALIGN(4); } - _end = . ; + __bss_end__ = . ; PROVIDE (end = .); }