aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-11-10 21:48:27 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-11-10 21:48:27 +0000
commit34548764c218105c005ed546d2fbfb3cf1ae4ac5 (patch)
treea2ac3e78e4eeb0823c22d07cba47f66b257b47ff /gcc/config/darwin.h
parent15471d58fe2e8349c391205338176f3fbdaad70c (diff)
downloadgcc-34548764c218105c005ed546d2fbfb3cf1ae4ac5.zip
gcc-34548764c218105c005ed546d2fbfb3cf1ae4ac5.tar.gz
gcc-34548764c218105c005ed546d2fbfb3cf1ae4ac5.tar.bz2
[Darwin, machopic 11/n] A flag to indicate synbols should be linker-visible.
Some of the solution to PR71767 is incomplete, and we need finer-grained control over whether symbols need to be made linker-visible. This is a preparation patch, providing the flag. gcc/ChangeLog: 2019-11-10 Iain Sandoe <iain@sandoe.co.uk> * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New. (MACHO_SYMBOL_LINKER_VIS_P): New. From-SVN: r278028
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r--gcc/config/darwin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index f331fa1..8eb8edf 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -843,6 +843,13 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS];
#define MACHO_SYMBOL_HIDDEN_VIS_P(RTX) \
((SYMBOL_REF_FLAGS (RTX) & MACHO_SYMBOL_FLAG_HIDDEN_VIS) != 0)
+/* Set on a symbol that should be made visible to the linker (overriding
+ 'L' symbol prefixes). */
+
+#define MACHO_SYMBOL_FLAG_LINKER_VIS ((SYMBOL_FLAG_SUBT_DEP) << 4)
+#define MACHO_SYMBOL_LINKER_VIS_P(RTX) \
+ ((SYMBOL_REF_FLAGS (RTX) & MACHO_SYMBOL_FLAG_LINKER_VIS) != 0)
+
/* Set on a symbol that is a pic stub or symbol indirection (i.e. the
L_xxxxx${stub,non_lazy_ptr,lazy_ptr}. */