diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-12-20 18:15:00 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-12-20 18:15:00 +0000 |
commit | 8aa3ff05c18ff034c556c23ca0795585b2c2c4c2 (patch) | |
tree | 86dfef9d2ee44fa0295246eac95a92e1b1aac675 /docs/Extensions.rst | |
parent | fc90ff9692bac13e7e18e592f023478773c97b72 (diff) | |
download | llvm-8aa3ff05c18ff034c556c23ca0795585b2c2c4c2.tar.gz llvm-8aa3ff05c18ff034c556c23ca0795585b2c2c4c2.tar.bz2 llvm-8aa3ff05c18ff034c556c23ca0795585b2c2c4c2.tar.xz |
[COFF] Add support for the .secidx directive
Reviewed at http://llvm-reviews.chandlerc.com/D2445
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/Extensions.rst')
-rw-r--r-- | docs/Extensions.rst | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/Extensions.rst b/docs/Extensions.rst index 9f33d30ac7..f499bdd57e 100644 --- a/docs/Extensions.rst +++ b/docs/Extensions.rst @@ -37,7 +37,7 @@ X86/COFF-Dependent Relocations ^^^^^^^^^^^ -The following additional relocation type is supported: +The following additional relocation types are 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 @@ -54,6 +54,22 @@ corresponds to the COFF relocation types ``IMAGE_REL_I386_DIR32NB`` (32-bit) or .long (fun@imgrel + 0x3F) .long $unwind$fun@imgrel +**.secrel32** generates a relocation that corresponds to the COFF relocation +types ``IMAGE_REL_I386_SECREL`` (32-bit) or ``IMAGE_REL_AMD64_SECREL`` (64-bit). + +**.secidx** relocation generates an index of the section that contains +the target. It corresponds to the COFF relocation types +``IMAGE_REL_I386_SECTION`` (32-bit) or ``IMAGE_REL_AMD64_SECTION`` (64-bit). + +.. code-block:: gas + + .section .debug$S,"rn" + .long 4 + .long 242 + .long 40 + .secrel32 _function_name + .secidx _function_name + ... ``.linkonce`` Directive ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |