From: Alan Modra Date: Fri, 30 Sep 2016 08:22:48 +0000 (+0930) Subject: v850 linker scripts X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=76276ff673e9d6855d721e4caf19a244c8b7363d;p=deliverable%2Fbinutils-gdb.git v850 linker scripts This should mean the 2010-10-28 change for ld -r --gc-sections can be reverted. * scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when not relocating. * scripttempl/v850_rh850.sc: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 99ca2e5fde..3ad2a7affa 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2016-09-30 Alan Modra + + * scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when + not relocating. + * scripttempl/v850_rh850.sc: Likewise. + 2016-09-30 Alan Modra PR ld/20528 diff --git a/ld/scripttempl/v850.sc b/ld/scripttempl/v850.sc index cf7cd20aad..9ff5e9a60c 100644 --- a/ld/scripttempl/v850.sc +++ b/ld/scripttempl/v850.sc @@ -16,7 +16,7 @@ OUTPUT_FORMAT("elf32-v850", "elf32-v850", OUTPUT_ARCH(v850:old-gcc-abi) ${RELOCATING+ENTRY(_start)} SEARCH_DIR(.); -EXTERN(__ctbp __ep __gp); +${RELOCATING+EXTERN(__ctbp __ep __gp)}; SECTIONS { /* This saves a little space in the ELF file, since the zda starts diff --git a/ld/scripttempl/v850_rh850.sc b/ld/scripttempl/v850_rh850.sc index a44b9b5f5b..b54e95662a 100644 --- a/ld/scripttempl/v850_rh850.sc +++ b/ld/scripttempl/v850_rh850.sc @@ -16,7 +16,7 @@ OUTPUT_FORMAT("elf32-v850-rh850", "elf32-v850-rh850", OUTPUT_ARCH(v850:rh850) ${RELOCATING+ENTRY(_start)} SEARCH_DIR(.); -EXTERN(__ctbp __ep __gp); +${RELOCATING+EXTERN(__ctbp __ep __gp)}; SECTIONS { /* This saves a little space in the ELF file, since the zda starts