aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorSatoru Takabayashi <satorux@google.com>2011-05-11 18:28:14 +0000
committerPaul Pluzhnikov <ppluzhnikov@gcc.gnu.org>2011-05-11 11:28:14 -0700
commit79bec9233c4f17eebe157c21ebfbbdc5c733357d (patch)
tree2291400aa0fc2186bd4074198aeca58dd81e6625 /gcc/gcc.c
parente5b00edff55b11ccb722f6a14f6449b68bec8069 (diff)
downloadgcc-79bec9233c4f17eebe157c21ebfbbdc5c733357d.zip
gcc-79bec9233c4f17eebe157c21ebfbbdc5c733357d.tar.gz
gcc-79bec9233c4f17eebe157c21ebfbbdc5c733357d.tar.bz2
install.texi (Configuration): Document --with-linker-hash-style.
2011-05-11 Satoru Takabayashi <satorux@google.com> Paul Pluzhnikov <ppluzhnikov@google.com> * gcc/doc/install.texi (Configuration): Document --with-linker-hash-style. * gcc/gcc.c (init_spec): Handle LINKER_HASH_STYLE. * gcc/config.in: Add LINKER_HASH_STYLE. * gcc/configure.ac: Add --with-linker-hash-style. * gcc/configure: Regenerate. Co-Authored-By: Paul Pluzhnikov <ppluzhnikov@google.com> From-SVN: r173668
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index f9a2bb2..c43e45a 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1438,7 +1438,8 @@ init_spec (void)
}
#endif
-#if defined LINK_EH_SPEC || defined LINK_BUILDID_SPEC
+#if defined LINK_EH_SPEC || defined LINK_BUILDID_SPEC || \
+ defined LINKER_HASH_STYLE
# ifdef LINK_BUILDID_SPEC
/* Prepend LINK_BUILDID_SPEC to whatever link_spec we had before. */
obstack_grow (&obstack, LINK_BUILDID_SPEC, sizeof(LINK_BUILDID_SPEC) - 1);
@@ -1447,6 +1448,16 @@ init_spec (void)
/* Prepend LINK_EH_SPEC to whatever link_spec we had before. */
obstack_grow (&obstack, LINK_EH_SPEC, sizeof(LINK_EH_SPEC) - 1);
# endif
+# ifdef LINKER_HASH_STYLE
+ /* Prepend --hash-style=LINKER_HASH_STYLE to whatever link_spec we had
+ before. */
+ {
+ static const char hash_style[] = "--hash-style=";
+ obstack_grow (&obstack, hash_style, sizeof(hash_style) - 1);
+ obstack_grow (&obstack, LINKER_HASH_STYLE, sizeof(LINKER_HASH_STYLE) - 1);
+ obstack_1grow (&obstack, ' ');
+ }
+# endif
obstack_grow0 (&obstack, link_spec, strlen (link_spec));
link_spec = XOBFINISH (&obstack, const char *);
#endif