50 lines
2.2 KiB
Text
50 lines
2.2 KiB
Text
|
First hunk: lld complains about .gcc_except_table referencing
|
||
|
symbols in discarded sections. Tell gcc to split .gcc_except_table
|
||
|
so that its unused parts can also be discarded.
|
||
|
|
||
|
Index: libcc1/Makefile.in
|
||
|
--- libcc1/Makefile.in.orig
|
||
|
+++ libcc1/Makefile.in
|
||
|
@@ -387,7 +387,7 @@ CPPFLAGS_FOR_C_FAMILY = -I $(srcdir)/../gcc/c-family \
|
||
|
CPPFLAGS_FOR_C = $(CPPFLAGS_FOR_C_FAMILY) -I $(srcdir)/../gcc/c
|
||
|
CPPFLAGS_FOR_CXX = $(CPPFLAGS_FOR_C_FAMILY) -I $(srcdir)/../gcc/cp
|
||
|
AM_CXXFLAGS = $(WARN_FLAGS) $(WERROR) $(visibility) $(CET_HOST_FLAGS) \
|
||
|
- $(am__append_1)
|
||
|
+ $(am__append_1) $(PORTS_FORCE_SPLIT_SECTIONS)
|
||
|
# Can be simplified when libiberty becomes a normal convenience library.
|
||
|
libiberty_normal = ../libiberty/libiberty.a
|
||
|
libiberty_noasan = ../libiberty/noasan/libiberty.a
|
||
|
@@ -405,6 +405,8 @@ cc1libdir = $(libdir)/$(libsuffix)
|
||
|
shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
|
||
|
marshall.cc marshall.hh rpc.hh status.hh
|
||
|
|
||
|
+include $(top_srcdir)/../libversions
|
||
|
+
|
||
|
marshall_c_source = marshall-c.hh
|
||
|
marshall_cxx_source = marshall-cp.hh
|
||
|
libcc1plugin_la_LDFLAGS = -module -export-symbols $(srcdir)/libcc1plugin.sym
|
||
|
@@ -414,6 +416,7 @@ libcc1plugin_la_LIBADD = $(libiberty)
|
||
|
libcc1plugin_la_DEPENDENCIES = $(libiberty_dep)
|
||
|
libcc1plugin_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||
|
+ $(LIBcc1plugin_LTVERSION) \
|
||
|
$(CXXFLAGS) $(libcc1plugin_la_LDFLAGS) $(LTLDFLAGS) -o $@
|
||
|
|
||
|
libcp1plugin_la_LDFLAGS = -module -export-symbols $(srcdir)/libcp1plugin.sym
|
||
|
@@ -423,6 +426,7 @@ libcp1plugin_la_LIBADD = $(libiberty)
|
||
|
libcp1plugin_la_DEPENDENCIES = $(libiberty_dep)
|
||
|
libcp1plugin_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||
|
+ $(LIBcp1plugin_LTVERSION) \
|
||
|
$(CXXFLAGS) $(libcp1plugin_la_LDFLAGS) $(LTLDFLAGS) -o $@
|
||
|
|
||
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
||
|
@@ -435,6 +439,7 @@ libcc1_la_LIBADD = $(libiberty)
|
||
|
libcc1_la_DEPENDENCIES = $(libiberty_dep)
|
||
|
libcc1_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||
|
+ $(LIBcc1_LTVERSION) \
|
||
|
$(CXXFLAGS) $(libcc1_la_LDFLAGS) $(LTLDFLAGS) -o $@
|
||
|
|
||
|
all: cc1plugin-config.h
|