diff options
author | Alan Modra <amodra@gmail.com> | 2014-02-17 16:51:25 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-02-17 17:00:19 +1030 |
commit | 668e22e51bc50b884a8c1872a2371a6b00a08f9d (patch) | |
tree | 963c5f029488545fe2b2729668369af0ff3226bf /ld/emultempl | |
parent | 98dc0167d6bb0a931800078cb0eb36d403bc9994 (diff) | |
download | gdb-668e22e51bc50b884a8c1872a2371a6b00a08f9d.zip gdb-668e22e51bc50b884a8c1872a2371a6b00a08f9d.tar.gz gdb-668e22e51bc50b884a8c1872a2371a6b00a08f9d.tar.bz2 |
ppc476 workaround for ld -r fixes
This fixes the glaring error that the ppc476 workaround wasn't
actually enabled for ld -r, and adjusts relocations to match moved
code.
bfd/
* elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns
patched for ppc476 workaround. Reapply branch taken/not taken
relocs.
ld/
* emultempl/ppc32elf.em (ppc_after_open_output): Really enable
ppc476 workaround for ld -r.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/ppc32elf.em | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ld/emultempl/ppc32elf.em b/ld/emultempl/ppc32elf.em index 8de230a..f5a3a70 100644 --- a/ld/emultempl/ppc32elf.em +++ b/ld/emultempl/ppc32elf.em @@ -51,8 +51,6 @@ ppc_after_open_output (void) if (pagesize == 0) pagesize = config.commonpagesize; params.pagesize_p2 = bfd_log2 (pagesize); - if (link_info.relocatable) - params.ppc476_workaround = 0; ppc_elf_link_params (&link_info, ¶ms); } |