Skip to content

arm64: Fix fallout of asm/opcodes.h removal

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 2 patches 0 repliesNew

Patches in v2 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchWill Deacon
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] arm64: Fix fallout of asm/opcodes.h removal
Quoted 11 lines · Marc Zyngier

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.

Quoted 6 lines

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

For the two patches (not the bonus xen one!):

Thanks for sticking with this...

Will