diff options
author | Satoru Takabayashi <satorux@google.com> | 2011-05-11 18:28:14 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@gcc.gnu.org> | 2011-05-11 11:28:14 -0700 |
commit | 79bec9233c4f17eebe157c21ebfbbdc5c733357d (patch) | |
tree | 2291400aa0fc2186bd4074198aeca58dd81e6625 /gcc/gcc.c | |
parent | e5b00edff55b11ccb722f6a14f6449b68bec8069 (diff) | |
download | gcc-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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |