aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-10-03 18:27:43 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-10-03 18:27:43 +0000
commit8a5b2f56c4c9d80c8ac2c31c82304681f4e9da80 (patch)
tree15c843c07141b70b3ad9517f0b5a6cd6468098f6 /gcc
parent4262839e12747458dddc905525271e115e3bfe83 (diff)
downloadgcc-8a5b2f56c4c9d80c8ac2c31c82304681f4e9da80.zip
gcc-8a5b2f56c4c9d80c8ac2c31c82304681f4e9da80.tar.gz
gcc-8a5b2f56c4c9d80c8ac2c31c82304681f4e9da80.tar.bz2
compiler: Recognize 64-bit symbol tables in archives.
By Dominik Vogt. From-SVN: r215869
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/gofrontend/import-archive.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/import-archive.cc b/gcc/go/gofrontend/import-archive.cc
index 34fb528..4305755 100644
--- a/gcc/go/gofrontend/import-archive.cc
+++ b/gcc/go/gofrontend/import-archive.cc
@@ -295,6 +295,15 @@ Archive_file::interpret_header(const Archive_header* hdr, off_t off,
// This is the symbol table.
pname->clear();
}
+ else if (hdr->ar_name[1] == 'S' && hdr->ar_name[2] == 'Y'
+ && hdr->ar_name[3] == 'M' && hdr->ar_name[4] == '6'
+ && hdr->ar_name[5] == '4' && hdr->ar_name[6] == '/'
+ && hdr->ar_name[7] == ' '
+ )
+ {
+ // 64-bit symbol table.
+ pname->clear();
+ }
else if (hdr->ar_name[1] == '/')
{
// This is the extended name table.