diff options
author | 2024-06-05 16:39:54 +0100 | |
---|---|---|
committer | 2024-07-01 15:50:16 +0000 | |
commit | f513aece93f7b19bbe1ba01d97340d41468fcbbc (patch) | |
tree | 05bd51a7fb5c740df395d34524549aac5d855ae1 /compiler | |
parent | 571e7b5ec1cbcd9ecb2b30ac67e69881f98e0767 (diff) |
Accept immediate comments in x86(_64) assembly
Objdump can sometimes output comments after assembly instructions,
which are then not recognised as an instruction that alters the
stack, by check_cfi.py. For example objdump might output the
following when increasing the frame size on x86_64:
subq $0x108, %rsp # imm = 0x108
Fix this by recognising and accepting assembly comments in this form:
"# imm = 0x..." which may be postfixed to stack altering instructions
from objdump.
Note: objdump does not currently output these comments however
subsequent changes to quick entrypoint assembly could result in these
comments being added.
Test: ./art/tools/check_cfi.py (on x86 and x86_64 targets)
Change-Id: I0195e82c0eb9f7409f3ec46eeafec05a4a8e3f41
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions