// Test ensures this package can read gccgo export data from the // .go_export from a standalone ELF file or such a file in an archive // library. // // The testdata/{short,long}.a ELF archive files were produced by: // // $ echo 'package foo; func F()' > foo.go // $ gccgo -c -fgo-pkgpath blah foo.go // $ objcopy -j .go_export foo.o foo.gox // $ ar q short.a foo.gox // $ objcopy -j .go_export foo.o name-longer-than-16-bytes.gox // $ ar q long.a name-longer-than-16-bytes.gox // // The file long.a contains an archive string table. // // The errors.gox file (an ELF object file) comes from the toolchain's // standard library. func Test(t *testing.T) { … }