linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: Fix fallout of asm/opcodes.h removal
@ 2016-12-06 15:27 Marc Zyngier
  2016-12-06 15:27 ` [PATCH v2 1/2] arm64: Add detection code for broken .inst support in binutils Marc Zyngier
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Marc Zyngier @ 2016-12-06 15:27 UTC (permalink / raw)
  To: linux-arm-kernel

As part of the asm/opcodes.h removal, the SET_PSTATE_{PAN,UAO} macros
have been switch to using the .inst directive instead of .long (as
this has the advantage of providing a correct disassembly). This
had the side effect of bringing back an ugly gas bug that shows up
when .inst is used within alternative sequences.

This series works around the problem by:
- adding detection code for the broken binutils,
- work around the issue by falling back to .long when using a buggy
  assembler.

This has been tested with both binutils 2.25 (broken) and 2.27
(fixed), with both LE and BE builds.

Marc Zyngier (2):
  arm64: Add detection code for broken .inst support in binutils
  arm64: Work around broken .inst when defective gas is detected

 arch/arm64/Makefile             | 10 ++++++++--
 arch/arm64/include/asm/sysreg.h | 29 +++++++++++++++++++++++++----
 2 files changed, 33 insertions(+), 6 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-12-06 17:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 15:27 [PATCH v2 0/2] arm64: Fix fallout of asm/opcodes.h removal Marc Zyngier
2016-12-06 15:27 ` [PATCH v2 1/2] arm64: Add detection code for broken .inst support in binutils Marc Zyngier
2016-12-06 15:27 ` [PATCH v2] arm/arm64: xen: Move shared architecture headers to include/xen/arm Marc Zyngier
2016-12-06 15:34   ` Marc Zyngier
2016-12-06 15:27 ` [PATCH v2 2/2] arm64: Work around broken .inst when defective gas is detected Marc Zyngier
2016-12-06 16:28   ` Dave Martin
2016-12-06 17:38     ` Dave Martin
2016-12-06 15:30 ` [PATCH v2 0/2] arm64: Fix fallout of asm/opcodes.h removal Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).