diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2009-09-21 18:55:08 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2009-09-21 18:55:08 +0000 |
commit | 30af59626b24a4f41e0d9adc224617b8eec0a9d5 (patch) | |
tree | b32f2bc11776f758c68e35a35b0de2ada952cb3e /ld/testsuite | |
parent | ce0420dced59a0e1fc114e9bee2117ded5342021 (diff) | |
download | gdb-30af59626b24a4f41e0d9adc224617b8eec0a9d5.zip gdb-30af59626b24a4f41e0d9adc224617b8eec0a9d5.tar.gz gdb-30af59626b24a4f41e0d9adc224617b8eec0a9d5.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/eh-frame1-n32.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/eh-frame1-n64.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/eh-frame2-n32.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/eh-frame2-n64.d | 6 |
5 files changed, 21 insertions, 12 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 3185e3b..7049206 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2009-09-21 Richard Sandiford <rdsandiford@googlemail.com> + + * 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. + 2009-09-21 Alan Modra <amodra@bigpond.net.au> * ld-powerpc/tlslib.s: Delete dot-symbol entry syms. Add diff --git a/ld/testsuite/ld-mips-elf/eh-frame1-n32.d b/ld/testsuite/ld-mips-elf/eh-frame1-n32.d index e718379..a460512 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame1-n32.d +++ b/ld/testsuite/ld-mips-elf/eh-frame1-n32.d @@ -25,7 +25,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 + Augmentation data: 1b DW_CFA_advance_loc: 0 to 00000000 DW_CFA_advance_loc: 0 to 00000000 @@ -65,7 +65,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 00 00 00 00 00 + Augmentation data: 1b 00 00 00 00 00 DW_CFA_advance_loc: 0 to 00000000 DW_CFA_advance_loc: 0 to 00000000 @@ -108,7 +108,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 00 00 00 00 00 10 + Augmentation data: 00 00 00 00 00 1b DW_CFA_advance_loc: 0 to 00000000 diff --git a/ld/testsuite/ld-mips-elf/eh-frame1-n64.d b/ld/testsuite/ld-mips-elf/eh-frame1-n64.d index 2913106..c77315f 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame1-n64.d +++ b/ld/testsuite/ld-mips-elf/eh-frame1-n64.d @@ -41,7 +41,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 + Augmentation data: 1c DW_CFA_advance_loc: 0 to 00000000 DW_CFA_advance_loc: 0 to 00000000 @@ -105,7 +105,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 00 00 00 00 00 00 00 00 00 + Augmentation data: 1c 00 00 00 00 00 00 00 00 00 DW_CFA_advance_loc: 0 to 00000000 DW_CFA_advance_loc: 0 to 00000000 @@ -172,7 +172,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 00 00 00 00 00 00 00 00 00 10 + Augmentation data: 00 00 00 00 00 00 00 00 00 1c DW_CFA_advance_loc: 0 to 00000000 DW_CFA_advance_loc: 0 to 00000000 diff --git a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d index e029420..e264955 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d +++ b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d @@ -25,7 +25,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 + Augmentation data: 1b DW_CFA_nop DW_CFA_nop @@ -65,7 +65,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 00 00 00 00 00 + Augmentation data: 1b 00 00 00 00 00 DW_CFA_nop @@ -104,7 +104,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 00 00 00 00 00 10 + Augmentation data: 00 00 00 00 00 1b DW_CFA_nop diff --git a/ld/testsuite/ld-mips-elf/eh-frame2-n64.d b/ld/testsuite/ld-mips-elf/eh-frame2-n64.d index a03476e..237c3d4 100644 --- a/ld/testsuite/ld-mips-elf/eh-frame2-n64.d +++ b/ld/testsuite/ld-mips-elf/eh-frame2-n64.d @@ -41,7 +41,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 + Augmentation data: 1c DW_CFA_nop DW_CFA_nop @@ -105,7 +105,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 10 00 00 00 00 00 00 00 00 00 + Augmentation data: 1c 00 00 00 00 00 00 00 00 00 DW_CFA_nop DW_CFA_nop @@ -164,7 +164,7 @@ Contents of the \.eh_frame section: Code alignment factor: 1 Data alignment factor: 4 Return address column: 31 - Augmentation data: 00 00 00 00 00 00 00 00 00 10 + Augmentation data: 00 00 00 00 00 00 00 00 00 1c DW_CFA_nop DW_CFA_nop |