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.
This commit is contained in:
Alan Modra
2016-09-30 17:52:48 +09:30
parent 80169c8a23
commit 76276ff673
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-09-30 Alan Modra <amodra@gmail.com>
* scripttempl/v850.sc: Don't reference __ctbp, __ep, __gp when
not relocating.
* scripttempl/v850_rh850.sc: Likewise.
2016-09-30 Alan Modra <amodra@gmail.com>
PR ld/20528

View File

@ -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

View File

@ -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