diff options
| author | Francesco Petrogalli <francesco.petrogalli@apple.com> | 2026-01-26 14:06:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 14:06:30 -0800 |
| commit | 460c9b2db144e4ef736a31f29c0b366e565f2574 (patch) | |
| tree | e5916a954608e7d3a4c50d2dd268a178c8c532ea /lldb/test/API/python_api | |
| parent | 648cb364f84b78740b98b11466207bef193473e9 (diff) | |
| download | llvm-460c9b2db144e4ef736a31f29c0b366e565f2574.zip llvm-460c9b2db144e4ef736a31f29c0b366e565f2574.tar.gz llvm-460c9b2db144e4ef736a31f29c0b366e565f2574.tar.bz2 | |
[RISC-V][Mach-O] Add assembler support for Mach-O relocations. (#177446)
This patch adds comprehensive assembler (MC layer) support for the
Mach-O object file format on RISC-V targets, enabling assembly and
disassembly of RISC-V code targeting Apple platforms.
Key changes:
- Define RISC-V-specific Mach-O relocation types in BinaryFormat/MachO.h
- Implement RISCVMachObjectWriter with full relocation handling for:
- PCREL_HI/LO pairs for PC-relative addressing
- GOT relocations for external symbols
- Branch relocations (CALL, unconditional/conditional branches)
- Data section relocations
Test files include llvm-otool dumps to verify the generated relocations.
This code is based on code originally written by Tim Northover.
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
