From: ian Date: Thu, 28 Feb 2019 01:01:46 +0000 (+0000) Subject: libgo: fix go_export extraction on Darwin X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a751879fdce81453ae2374920f86204b1fa077e;p=thirdparty%2Fgcc.git libgo: fix go_export extraction on Darwin On Darwin, the section name is prefixed with the segment name, __GNU_GO. Reviewed-on: https://go-review.googlesource.com/c/151097 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269271 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 749e523e7df5..e997df8f36fd 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -74533ed435a1a77e6f9ec8f6cf5db1695c2568e8 +08f1c400ec95d70a5cf5a08b1600fa5445e42361 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/Makefile.am b/libgo/Makefile.am index aeaa203ce5a3..1201cf59633a 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -13,6 +13,12 @@ if LIBGO_IS_RTEMS subdirs = testsuite endif +if LIBGO_IS_DARWIN +GO_EXPORT_SECTION_NAME = __GNU_GO.__go_export +else +GO_EXPORT_SECTION_NAME = .go_export +endif + SUBDIRS = ${subdirs} gcc_version := $(shell $(GOC) -dumpversion) @@ -818,7 +824,7 @@ BUILDGOX = \ if test ! -f $$f; then \ f="$(basename $(