]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/write.c
Extend .reloc to accept some BFD_RELOCs
authorAlan Modra <amodra@gmail.com>
Mon, 19 Jan 2015 08:27:04 +0000 (18:57 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 19 Jan 2015 09:07:46 +0000 (19:37 +1030)
commit740bdc67c057ee8012327420848eb134e1db4211
tree5b62be60b72fb242cfe55b497abc9894afb6218e
parent0ba38529f27a815a576bc07c85ceb65f6498ef5a
Extend .reloc to accept some BFD_RELOCs

Tests that bfd_perform_reloc doesn't freak over a NONE reloc at end
of section.

gas/
* read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
* write.c (get_frag_for_reloc): Allow match just past end of frag.
gas/testsuite/
* gas/all/none.s,
* gas/all/none.d: New test.
* gas/all/gas.exp: Run it.
gas/ChangeLog
gas/read.c
gas/testsuite/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/none.d [new file with mode: 0644]
gas/testsuite/gas/all/none.s [new file with mode: 0644]
gas/write.c