[all-commits] [llvm/llvm-project] a1bc3e: [ARMAsmBackend] Add checks for relocation addends ...
Jonathan Cohen via All-commits
all-commits at lists.llvm.org
Wed Oct 9 02:02:07 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a1bc3e63cc020aad75b55d8732ab7ae15ea1c973
https://github.com/llvm/llvm-project/commit/a1bc3e63cc020aad75b55d8732ab7ae15ea1c973
Author: Jonathan Cohen <jcohen22 at apple.com>
Date: 2024-10-09 (Wed, 09 Oct 2024)
Changed paths:
M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
A llvm/test/MC/ARM/macho-relocs-with-addend-invalid.s
M llvm/test/MC/ARM/macho-relocs-with-addend.s
Log Message:
-----------
[ARMAsmBackend] Add checks for relocation addends in assembler (#109969)
This PR adds checks that any addends attached to branch instructions are
valid, and can be properly encoded in the branch instruction. Before
this fix, the assembler would silently truncate or round invalid addend
values, creating incorrect branch instructions.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list