Skip to content

Commit c9a7993

Browse files
reword the attribute documentation
1 parent 1228641 commit c9a7993

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5796,14 +5796,17 @@ declared entity. The entity must not have weak linkage; for example, in C++,
57965796
it cannot be applied to a declaration if a definition at that location would be
57975797
considered inline.
57985798

5799-
Not all targets support this attribute. ELF target support depends on both the
5800-
linker and runtime linker, and is available in at least lld 4.0 and later,
5801-
binutils 2.20.1 and later, glibc v2.11.1 and later, and FreeBSD 9.1 and later.
5802-
Mach-O targets support it, but with slightly different semantics: the resolver
5803-
is run at first call, instead of at load time by the runtime linker. Windows on
5804-
AArch64 the ``ifunc`` is replaced with global function pointer and the call is
5805-
replaced by an indirect call. The pointer is initialized by a contructor that
5806-
calls the resolver. Other targets currently do not support this attribute.
5799+
Not all targets support this attribute:
5800+
- ELF target support depends on both the linker and runtime linker, and is
5801+
available in at least lld 4.0 and later, binutils 2.20.1 and later, glibc
5802+
v2.11.1 and later, and FreeBSD 9.1 and later.
5803+
- Mach-O targets support it, but with slightly different semantics: the resolver
5804+
is run at first call, instead of at load time by the runtime linker.
5805+
- Windows target supports it on AArch64, but with different semantics: the
5806+
``ifunc`` is replaced with a global function pointer, and the call is replaced
5807+
with an indirect call. The function pointer is initialized by a constructor
5808+
that calls the resolver.
5809+
- Other targets currently do not support this attribute.
58075810
}];
58085811
}
58095812

0 commit comments

Comments
 (0)