From a10917efdd389ce903c6f67bc5096bb1009da207 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 21 Sep 2009 19:07:44 +0000 Subject: bfd/ * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous patch to handle the new personality relaxation. ld/testsuite/ * ld-mips-elf/eh-frame5.d: Expect PC-relative encodings to include DW_EH_PE_sdata4. --- bfd/elf-eh-frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf-eh-frame.c') diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 995dac04ee0..5d1def943a3 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -1494,7 +1494,7 @@ _bfd_elf_write_section_eh_frame (bfd *abfd, break; case 'P': if (ent->u.cie.make_per_encoding_relative) - *buf |= DW_EH_PE_pcrel; + *buf = make_pc_relative (*buf, ptr_size); per_encoding = *buf++; per_width = get_DW_EH_PE_width (per_encoding, ptr_size); BFD_ASSERT (per_width != 0); -- cgit v1.2.1