From 50248c890f1bc82c6e1751bd549da7580c60f098 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 6 Jul 2010 09:29:47 +0000 Subject: bfd/ * elf32-ppc.c (ppc_elf_relax_section): Insert branch around trampolines only for .init and .fini sections. ld/testsuite/ * ld-powerpc/relax.s: Add branch back to _start. * ld-powerpc/relax.d: Update. * ld-powerpc/relaxr.d: Update. --- ld/testsuite/ld-powerpc/relaxr.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/testsuite/ld-powerpc/relaxr.d') diff --git a/ld/testsuite/ld-powerpc/relaxr.d b/ld/testsuite/ld-powerpc/relaxr.d index ce8cb9c..6e55984 100644 --- a/ld/testsuite/ld-powerpc/relaxr.d +++ b/ld/testsuite/ld-powerpc/relaxr.d @@ -10,7 +10,8 @@ Disassembly of section .text: 8: R_PPC_NONE \*ABS\* c: 48 00 00 19 bl 24 <_start\+0x24> c: R_PPC_NONE \*ABS\* - 10: 48 00 00 24 b 34 <_start\+0x34> + 10: 48 00 00 00 b 10 <_start\+0x10> + 10: R_PPC_REL24 _start 14: 3d 80 00 00 lis r12,0 16: R_PPC_ADDR16_HA near 18: 39 8c 00 00 addi r12,r12,0 -- cgit v1.1