X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Femulparams%2Felf32ppc.sh;fp=ld%2Femulparams%2Felf32ppc.sh;h=e638815e89633a594f14d30fc477830041406031;hp=68962d7325d79e2e58a5aecdfe2d36e7c6793a00;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/ld/emulparams/elf32ppc.sh b/ld/emulparams/elf32ppc.sh index 68962d7..e638815 100644 --- a/ld/emulparams/elf32ppc.sh +++ b/ld/emulparams/elf32ppc.sh @@ -10,7 +10,16 @@ SDATA_GOT= SEPARATE_GOTPLT=0 BSS_PLT= GOT=".got ${RELOCATING-0} : SPECIAL { *(.got) }" -PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }" -GOTPLT="${PLT}" +GOTPLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) }" +PLT=".plt ${RELOCATING-0} : SPECIAL { *(.plt) } + .iplt ${RELOCATING-0} : { *(.iplt) }" OTHER_TEXT_SECTIONS="*(.glink)" EXTRA_EM_FILE=ppc32elf +if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then +# crt1.o defines data_start and __data_start. Keep them first. +# Next put all the .data.spehandle sections, with a trailing zero word. + DATA_START_SYMBOLS="${RELOCATING+*crt1.o(.data .data.* .gnu.linkonce.d.*) + PROVIDE (__spe_handle = .); + *(.data.spehandle) + . += 4 * (DEFINED (__spe_handle) || . != 0);}" +fi