Fix uninitialised VAX insn
authorAlan Modra <amodra@gmail.com>
Mon, 16 Jun 2014 00:47:50 +0000 (10:17 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Jun 2014 02:59:52 +0000 (12:29 +0930)
commitee0738df021c42217828f02858c1f882a1546557
tree94f9222e1664e2aa2dfe5fe7e28019769aa3bcd5
parenteb9a5ecfacc42b9b741a3f83f433252b3c7cd77e
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.
gas/ChangeLog
gas/config/tc-vax.c
gas/testsuite/ChangeLog
gas/testsuite/gas/vax/elf-rel.d
This page took 0.031827 seconds and 4 git commands to generate.