aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-lang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-06-05 18:35:40 +0930
committerAlan Modra <amodra@gmail.com>2015-07-10 19:57:37 +0930
commit2bc6144cb70a4bd4129d12afe3313a20235fc31e (patch)
treeefa370fc907752efe1a9f0a07f24de20c570e9fa /gdb/go-lang.c
parent21d697be19adab1b6df7090f05c629b0003adfa4 (diff)
downloadgdb-2bc6144cb70a4bd4129d12afe3313a20235fc31e.zip
gdb-2bc6144cb70a4bd4129d12afe3313a20235fc31e.tar.gz
gdb-2bc6144cb70a4bd4129d12afe3313a20235fc31e.tar.bz2
ppc476 linker workaround shared lib fixes
When building a shared lib from non-PIC objects, we'll get dynamic text relocations. These need to move with any insns we move. Otherwise the dynamic reloc will modify the branch, resulting in crashes and other unpleasant behaviour. Also, ld -r --ppc476-workaround used with sufficiently aligned PIC objects needs a fix for emitted REL16 relocs. bfd/ * elf64-ppc.c (ppc_elf_relocate_section): Move dynamic text relocs with insns moved by --ppc476-workaround. Correct output of REL16 relocs. ld/testsuite/ * ld-powerpc/ppc476-shared.s, * ld-powerpc/ppc476-shared.lnk, * ld-powerpc/ppc476-shared.d, * ld-powerpc/ppc476-shared2.d: New tests. * ld-powerpc/powerpc.exp: Run them.
Diffstat (limited to 'gdb/go-lang.c')
0 files changed, 0 insertions, 0 deletions