mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
40 lines
761 B
ReStructuredText
40 lines
761 B
ReStructuredText
|
===============
|
||
|
LLVM Extensions
|
||
|
===============
|
||
|
|
||
|
.. contents::
|
||
|
:local:
|
||
|
:depth: 1
|
||
|
|
||
|
.. toctree::
|
||
|
:hidden:
|
||
|
|
||
|
Introduction
|
||
|
============
|
||
|
|
||
|
This document describes extensions to tools and formats LLVM seeks compatibility
|
||
|
with.
|
||
|
|
||
|
Machine-specific Assembly Syntax
|
||
|
================================
|
||
|
|
||
|
X86/COFF-Dependent
|
||
|
------------------
|
||
|
|
||
|
The following additional relocation type is supported:
|
||
|
|
||
|
**@IMGREL** (AT&T syntax only) generates an image-relative relocation that
|
||
|
corresponds to the COFF relocation types ``IMAGE_REL_I386_DIR32NB`` (32-bit) or
|
||
|
``IMAGE_REL_AMD64_ADDR32NB`` (64-bit).
|
||
|
|
||
|
.. code-block:: gas
|
||
|
|
||
|
.text
|
||
|
fun:
|
||
|
mov foo@IMGREL(%ebx, %ecx, 4), %eax
|
||
|
|
||
|
.section .pdata
|
||
|
.long fun@IMGREL
|
||
|
.long (fun@imgrel + 0x3F)
|
||
|
.long $unwind$fun@imgrel
|