diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-02-09 14:59:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-02-09 14:59:20 +0000 |
commit | 5a2d92c7cf7bf6ea69d25886c2101276d49522be (patch) | |
tree | 621ade0fee1e638f5fd88bc7bbf0d81c0770ee66 /docs/Extensions.rst | |
parent | e6fa7df85ce489cc40ab1cb8f6a9dd1e73bd188c (diff) |
Make it possible to set SHF_LINK_ORDER explicitly.
This will make it possible to add support for gcing user metadata
(asan for example).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/Extensions.rst')
-rw-r--r-- | docs/Extensions.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/Extensions.rst b/docs/Extensions.rst index 56bb2793059..782539dda58 100644 --- a/docs/Extensions.rst +++ b/docs/Extensions.rst @@ -204,6 +204,24 @@ For example, the following code creates two sections named ``.text``. The unique number is not present in the resulting object at all. It is just used in the assembler to differentiate the sections. +The 'm' flag is mapped to SHF_LINK_ORDER. If it is present, a symbol +must be given that identifies the section to be placed is the +.sh_link. + +.. code-block:: gas + + .section .foo,"a",@progbits + .Ltmp: + .section .bar,"am",@progbits,.Ltmp + +which is equivalent to just + +.. code-block:: gas + + .section .foo,"a",@progbits + .section .bar,"am",@progbits,.foo + + Target Specific Behaviour ========================= |