summaryrefslogtreecommitdiff
path: root/docs/UsersManual.rst
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-07-17 23:17:16 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-07-17 23:17:16 +0000
commitaf6ecdb85b3d3233cee3828183372144104f9aca (patch)
tree500baa2733d0cf8dbf9741e2660705f88dccdc2e /docs/UsersManual.rst
parented683dcc4ef0546d1e6c04337222d90bac7b785c (diff)
downloadclang-af6ecdb85b3d3233cee3828183372144104f9aca.tar.gz
Teach Clang to emit address-significance tables.
By default, we emit an address-significance table on all ELF targets when the integrated assembler is enabled. The emission of an address-significance table can be controlled with the -faddrsig and -fno-addrsig flags. Differential Revision: https://reviews.llvm.org/D48155 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r--docs/UsersManual.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst
index 4470dab947..418afb2d54 100644
--- a/docs/UsersManual.rst
+++ b/docs/UsersManual.rst
@@ -1382,6 +1382,15 @@ are listed below.
// value of -fmax-type-align.
}
+.. option:: -faddrsig, -fno-addrsig
+
+ Controls whether Clang emits an address-significance table into the object
+ file. Address-significance tables allow linkers to implement `safe ICF
+ <https://research.google.com/pubs/archive/36912.pdf>`_ without the false
+ positives that can result from other implementation techniques such as
+ relocation scanning. Address-significance tables are enabled by default
+ on ELF targets when using the integrated assembler. This flag currently
+ only has an effect on ELF targets.
Profile Guided Optimization
---------------------------