diff options
author | Alan Modra <amodra@gmail.com> | 2014-06-16 10:17:50 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-06-16 12:29:52 +0930 |
commit | ee0738df021c42217828f02858c1f882a1546557 (patch) | |
tree | 94f9222e1664e2aa2dfe5fe7e28019769aa3bcd5 /gas/testsuite | |
parent | eb9a5ecfacc42b9b741a3f83f433252b3c7cd77e (diff) | |
download | gdb-ee0738df021c42217828f02858c1f882a1546557.zip gdb-ee0738df021c42217828f02858c1f882a1546557.tar.gz gdb-ee0738df021c42217828f02858c1f882a1546557.tar.bz2 |
Fix uninitialised VAX insn
MALLOC_PERTURB_=1 results in "FAIL: VAX ELF relocations", due to object
file being emitted with uninitialised fields. Since these fields had
RELA relocs the field value won't be used at final link time, so the
problem is only seen in relocatable object files.
This rewrite of md_apply_fix clears all fields with relocs, whereas
before some fields had non-zero values.
gas/
* config/tc-vax.c (md_apply_fix): Rewrite.
(tc_gen_reloc, vax_cons, vax_cons_fix_new): Style: Use NO_RELOC
define rather than the equivalent BFD_RELOC_NONE.
gas/testsuite/
* gas/vax/elf-rel.d: Update.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/vax/elf-rel.d | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 7a42746..efc129b 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2014-06-16 Alan Modra <amodra@gmail.com> + * gas/vax/elf-rel.d: Update. + +2014-06-16 Alan Modra <amodra@gmail.com> + * gas/cris/rd-bkw4v32.d: Update. 2014-06-10 H.J. Lu <hongjiu.lu@intel.com> diff --git a/gas/testsuite/gas/vax/elf-rel.d b/gas/testsuite/gas/vax/elf-rel.d index 7e2df40..d4b26c6 100644 --- a/gas/testsuite/gas/vax/elf-rel.d +++ b/gas/testsuite/gas/vax/elf-rel.d @@ -33,10 +33,10 @@ OFFSET [ ]+ TYPE VALUE Contents of section \.text: - 0000 0000fb00 affafb00 cff5fffb 00efeeff .* - 0010 fffffb00 ef000000 00d5afe4 d5cfe0ff .* - 0020 d5efdaff ffffd5ef 00000000 d5afd9d5 .* - 0030 cfddffd5 efe7ffff ffd5ef00 00000004 .* + 0000 0000fb00 af00fb00 cf0000fb 00ef0000 .* + 0010 0000fb00 ef000000 00d5af00 d5cf0000 .* + 0020 d5ef0000 0000d5ef 00000000 d5af00d5 .* + 0030 cf0000d5 ef000000 00d5ef00 00000004 .* Contents of section \.data: 0000 00000000 00000000 00000000 0000 .* #pass |