X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FExtensions.rst;fp=docs%2FExtensions.rst;h=12eac5e0ed8878e00cd8ca4c747e9c48c2df2791;hb=903f4a20512b454212d6275677d71e3fab894106;hp=271c08598b3f24b5bdcc87244ef88a2a6227c30a;hpb=ffcb79bea1d3e22eb13795a8bc05add22673714e;p=oota-llvm.git diff --git a/docs/Extensions.rst b/docs/Extensions.rst index 271c08598b3..12eac5e0ed8 100644 --- a/docs/Extensions.rst +++ b/docs/Extensions.rst @@ -165,6 +165,29 @@ and ``.bar`` is associated to ``.foo``. .section .foo,"bw",discard, "sym" .section .bar,"rd",associative, "sym" + +ELF-Dependent +------------- + +``.section`` Directive +^^^^^^^^^^^^^^^^^^^^^^ + +In order to support creating multiple sections with the same name and comdat, +it is possible to add an unique number at the end of the ``.seciton`` directive. +For example, the following code creates two sections named ``.text``. + +.. code-block:: gas + + .section .text,"ax",@progbits,unique 1 + nop + + .section .text,"ax",@progbits,unique 2 + nop + + +The unique number is not present in the resulting object at all. It is just used +in the assembler to differentiate the sections. + Target Specific Behaviour =========================