From 82d6b68f0005342a0a2d781dc7d2a8899fbdac9a Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 3 Oct 2014 18:27:43 +0000 Subject: [PATCH] compiler: Recognize 64-bit symbol tables in archives. By Dominik Vogt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215869 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/gofrontend/import-archive.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/go/gofrontend/import-archive.cc b/gcc/go/gofrontend/import-archive.cc index 34fb528ab5c6..43057558228c 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. -- 2.47.3