]> Cypherpunks repositories - gostls13.git/commitdiff
go/internal/gccgoimporter: recognize aixbigafMagic archives
authorClément Chigot <chigot.c@gmail.com>
Wed, 16 Sep 2020 11:55:38 +0000 (13:55 +0200)
committerIan Lance Taylor <iant@golang.org>
Sat, 19 Sep 2020 05:13:19 +0000 (05:13 +0000)
Change-Id: I61a13f7d6410e4931efaa20307bdf1cc0037afc0
Reviewed-on: https://go-review.googlesource.com/c/go/+/255200
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Trust: Ian Lance Taylor <iant@golang.org>

src/go/internal/gccgoimporter/importer.go

index 6856611026f3244756d6a824056616231ae6e120..2494fd7b2a5c1fbc3f2f9df8b7432c867ed79385 100644 (file)
@@ -198,7 +198,7 @@ func GetImporter(searchpaths []string, initmap map[*types.Package]InitData) Impo
                        return
                }
 
-               if magics == archiveMagic {
+               if magics == archiveMagic || magics == aixbigafMagic {
                        reader, err = arExportData(reader)
                        if err != nil {
                                return