bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 21 Sep 2009 18:55:08 +0000 (18:55 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 21 Sep 2009 18:55:08 +0000 (18:55 +0000)
commit30af59626b24a4f41e0d9adc224617b8eec0a9d5
treeb32f2bc11776f758c68e35a35b0de2ada952cb3e
parentce0420dced59a0e1fc114e9bee2117ded5342021
bfd/
* elf-eh-frame.c (make_pc_relative): New function.
(_bfd_elf_write_section_eh_frame): Use it.

ld/testsuite/
* ld-mips-elf/eh-frame1-n32.d: Expect PC-relative encodings
to include DW_EH_PE_sdata4.
* ld-mips-elf/eh-frame2-n32.d: Likewise.
* ld-mips-elf/eh-frame1-n64.d: Expect PC-relative encodings
to include DW_EH_PE_sdata8.
* ld-mips-elf/eh-frame2-n64.d: Likewise.
bfd/ChangeLog
bfd/elf-eh-frame.c
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/eh-frame1-n32.d
ld/testsuite/ld-mips-elf/eh-frame1-n64.d
ld/testsuite/ld-mips-elf/eh-frame2-n32.d
ld/testsuite/ld-mips-elf/eh-frame2-n64.d