From 1d5c94cb3e2e312fc37e7841d17ea98a02f0412c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Jun 2015 16:47:51 +0930 Subject: ppc476 linker workaround shared lib fixes again Huh, I can't even write a binary search properly. bfd/ * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of dynamic relocs. ld/testsuite/ * ld-powerpc/ppc476-shared.s: Repeat dynamic reloc generating insns. * ld-powerpc/ppc476-shared.d: Update. * ld-powerpc/ppc476-shared2.d: Update. --- ld/testsuite/ld-powerpc/ppc476-shared.s | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ld/testsuite/ld-powerpc/ppc476-shared.s') diff --git a/ld/testsuite/ld-powerpc/ppc476-shared.s b/ld/testsuite/ld-powerpc/ppc476-shared.s index 6774bad..e23b78a 100644 --- a/ld/testsuite/ld-powerpc/ppc476-shared.s +++ b/ld/testsuite/ld-powerpc/ppc476-shared.s @@ -1,8 +1,14 @@ .text lis 3,x@ha addi 3,3,x@l + .org 0x10000 + lis 3,x@ha + addi 3,3,x@l + .org 0x20000 + lis 3,x@ha + addi 3,3,x@l - .org 0xfff4 + .org 0x2fff4 bcl 20,31,.+4 0: mflr 9 -- cgit v1.1