summaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2009-09-21 19:07:44 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2009-09-21 19:07:44 +0000
commit0ee763b37a727363a1e898852db8814744557e55 (patch)
tree7b14636020aa46ceb132500815dd17e6f7df52f9 /bfd/elf-eh-frame.c
parente8a3a9901149ac2fe85f11b3c8bc66cf4074b94c (diff)
downloadbinutils-redhat-0ee763b37a727363a1e898852db8814744557e55.tar.gz
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.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index 995dac04ee..5d1def943a 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);