AArch64: Close sequences at the end of sections
authorTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:50:15 +0000 (18:50 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:50:40 +0000 (18:50 +0100)
commit4f5d2536289c0aedc3234f1bff6e9f4284f267c5
tree1815012384509dd44b2d4f095f1fd6ee5c836fd8
parenta68f4cd235a36776d3d9fea7291163b8d8e35869
AArch64: Close sequences at the end of sections

Any open sequence at the end of a section or assembly is considered an error.
This patch adds a check at the end to ensure that all sequences have been closed
and if not reports a warning.

During disassembly it's not possible to detect this condition in the back-end so
the warning is only emitted from the assembler for now.

gas/

* config/tc-aarch64.c (force_automatic_sequence_close,
aarch64_frob_section): New.
* config/tc-aarch64.h (tc_frob_section, aarch64_frob_section): New.
gas/ChangeLog
gas/config/tc-aarch64.c
gas/config/tc-aarch64.h