GNU Binutils with patches for OS216
Revisão | 0381901e629115f5f0d92a27fe74b1814f6f389a (tree) |
---|---|
Hora | 2020-06-21 21:46:10 |
Autor | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
Do without ld ENABLE_PLUGINS
Instead, use BFD_SUPPORTS_PLUGINS.
* ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
* ldlang.c: Likewise.
* ldlang.h: Likewise.
* ldlex.h: Likewise.
* ldmain.c: Likewise.
* lexsup.c: Likewise.
* plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
* testplug.c: Likewise.
* testplug2.c: Likewise.
* testplug3.c: Likewise.
* testplug4.c: Likewise.
* configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
* Makefile.am: Remove ENABLE_PLUGINS conditionals.
(PLUGIN_CFLAGS): Don't define.
(PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all
uses with plugin file name.
* configure: Regenerate.
* Makefile.in: Regenerate.
@@ -1,3 +1,24 @@ | ||
1 | +2020-06-21 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS. | |
4 | + * ldlang.c: Likewise. | |
5 | + * ldlang.h: Likewise. | |
6 | + * ldlex.h: Likewise. | |
7 | + * ldmain.c: Likewise. | |
8 | + * lexsup.c: Likewise. | |
9 | + * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS. | |
10 | + * testplug.c: Likewise. | |
11 | + * testplug2.c: Likewise. | |
12 | + * testplug3.c: Likewise. | |
13 | + * testplug4.c: Likewise. | |
14 | + * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL. | |
15 | + * Makefile.am: Remove ENABLE_PLUGINS conditionals. | |
16 | + (PLUGIN_CFLAGS): Don't define. | |
17 | + (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all | |
18 | + uses with plugin file name. | |
19 | + * configure: Regenerate. | |
20 | + * Makefile.in: Regenerate. | |
21 | + | |
1 | 22 | 2020-06-20 Alan Modra <amodra@gmail.com> |
2 | 23 | |
3 | 24 | * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on |
@@ -47,19 +47,6 @@ WARN_CFLAGS = @WARN_CFLAGS@ | ||
47 | 47 | NO_WERROR = @NO_WERROR@ |
48 | 48 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) |
49 | 49 | |
50 | -# Conditionally enable the plugin interface. | |
51 | -if ENABLE_PLUGINS | |
52 | -PLUGIN_C = plugin.c | |
53 | -PLUGIN_H = plugin.h | |
54 | -PLUGIN_OBJECT = plugin.@OBJEXT@ | |
55 | -PLUGIN_CFLAGS = -DENABLE_PLUGINS | |
56 | -else | |
57 | -PLUGIN_C = | |
58 | -PLUGIN_H = | |
59 | -PLUGIN_OBJECT = | |
60 | -PLUGIN_CFLAGS = | |
61 | -endif | |
62 | - | |
63 | 50 | # We put the scripts in the directory $(scriptdir)/ldscripts. |
64 | 51 | # We can't put the scripts in $(datadir) because the SEARCH_DIR |
65 | 52 | # directives need to be different for native and cross linkers. |
@@ -152,7 +139,7 @@ TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \ | ||
152 | 139 | -I $(top_srcdir)/../libiberty |
153 | 140 | |
154 | 141 | AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @zlibinc@ \ |
155 | - @INCINTL@ $(HDEFINES) $(CFLAGS) $(PLUGIN_CFLAGS) \ | |
142 | + @INCINTL@ $(HDEFINES) $(CFLAGS) \ | |
156 | 143 | -DLOCALEDIR="\"$(datadir)/locale\"" |
157 | 144 | |
158 | 145 | BFDLIB = ../bfd/libbfd.la |
@@ -482,12 +469,12 @@ ALL_64_EMUL_EXTRA_OFILES = \ | ||
482 | 469 | CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ |
483 | 470 | ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ |
484 | 471 | mri.c ldcref.c pe-dll.c pep-dll.c ldlex-wrapper.c \ |
485 | - $(PLUGIN_C) ldbuildid.c ldelf.c ldelfgen.c | |
472 | + plugin.c ldbuildid.c ldelf.c ldelfgen.c | |
486 | 473 | |
487 | 474 | HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ |
488 | 475 | ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \ |
489 | 476 | ldwrite.h mri.h deffile.h pe-dll.h pep-dll.h \ |
490 | - elf-hints-local.h $(PLUGIN_H) ldbuildid.h ldelf.h ldelfgen.h | |
477 | + elf-hints-local.h plugin.h ldbuildid.h ldelf.h ldelfgen.h | |
491 | 478 | |
492 | 479 | GENERATED_CFILES = ldgram.c ldlex.c deffilep.c |
493 | 480 | GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h |
@@ -497,7 +484,7 @@ GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h | ||
497 | 484 | BUILT_SOURCES = $(GENERATED_HFILES) |
498 | 485 | |
499 | 486 | OFILES = ldgram.@OBJEXT@ ldlex-wrapper.@OBJEXT@ lexsup.@OBJEXT@ ldlang.@OBJEXT@ \ |
500 | - mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ $(PLUGIN_OBJECT) \ | |
487 | + mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ plugin.@OBJEXT@ \ | |
501 | 488 | ldwrite.@OBJEXT@ ldexp.@OBJEXT@ ldemul.@OBJEXT@ ldver.@OBJEXT@ ldmisc.@OBJEXT@ \ |
502 | 489 | ldfile.@OBJEXT@ ldcref.@OBJEXT@ ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES} \ |
503 | 490 | ldbuildid.@OBJEXT@ |
@@ -959,7 +946,7 @@ EXTRA_ld_new_SOURCES = deffilep.y ldlex.l | ||
959 | 946 | EXTRA_ld_new_SOURCES += pep-dll.c pe-dll.c ldelf.c ldelfgen.c |
960 | 947 | |
961 | 948 | ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c mri.c ldctor.c ldmain.c \ |
962 | - ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C) \ | |
949 | + ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c plugin.c \ | |
963 | 950 | ldbuildid.c |
964 | 951 | ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) \ |
965 | 952 | $(BFDLIB) $(LIBCTF) $(LIBIBERTY) $(LIBINTL_DEP) |
@@ -997,7 +984,6 @@ development.exp: $(BFDDIR)/development.sh | ||
997 | 984 | # |
998 | 985 | # Build a dummy plugin using libtool. |
999 | 986 | # |
1000 | -if ENABLE_PLUGINS | |
1001 | 987 | noinst_LTLIBRARIES = libldtestplug.la libldtestplug2.la \ |
1002 | 988 | libldtestplug3.la libldtestplug4.la |
1003 | 989 | libldtestplug_la_SOURCES = testplug.c |
@@ -1012,7 +998,6 @@ libldtestplug3_la_LDFLAGS = -no-undefined -rpath /nowhere | ||
1012 | 998 | libldtestplug4_la_SOURCES = testplug4.c |
1013 | 999 | libldtestplug4_la_CFLAGS= -g -O2 |
1014 | 1000 | libldtestplug4_la_LDFLAGS = -no-undefined -rpath /nowhere |
1015 | -endif | |
1016 | 1001 | |
1017 | 1002 | # DOCUMENTATION TARGETS |
1018 | 1003 | # Manual configuration file; not usually attached to normal configuration, |
@@ -138,8 +138,7 @@ CONFIG_CLEAN_FILES = po/Makefile.in | ||
138 | 138 | CONFIG_CLEAN_VPATH_FILES = |
139 | 139 | LTLIBRARIES = $(noinst_LTLIBRARIES) |
140 | 140 | libldtestplug_la_LIBADD = |
141 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug_la_OBJECTS = \ | |
142 | -@ENABLE_PLUGINS_TRUE@ libldtestplug_la-testplug.lo | |
141 | +am_libldtestplug_la_OBJECTS = libldtestplug_la-testplug.lo | |
143 | 142 | libldtestplug_la_OBJECTS = $(am_libldtestplug_la_OBJECTS) |
144 | 143 | AM_V_lt = $(am__v_lt_@AM_V@) |
145 | 144 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
@@ -149,44 +148,36 @@ libldtestplug_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
149 | 148 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
150 | 149 | $(libldtestplug_la_CFLAGS) $(CFLAGS) \ |
151 | 150 | $(libldtestplug_la_LDFLAGS) $(LDFLAGS) -o $@ |
152 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug_la_rpath = | |
153 | 151 | libldtestplug2_la_LIBADD = |
154 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug2_la_OBJECTS = \ | |
155 | -@ENABLE_PLUGINS_TRUE@ libldtestplug2_la-testplug2.lo | |
152 | +am_libldtestplug2_la_OBJECTS = libldtestplug2_la-testplug2.lo | |
156 | 153 | libldtestplug2_la_OBJECTS = $(am_libldtestplug2_la_OBJECTS) |
157 | 154 | libldtestplug2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
158 | 155 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
159 | 156 | $(libldtestplug2_la_CFLAGS) $(CFLAGS) \ |
160 | 157 | $(libldtestplug2_la_LDFLAGS) $(LDFLAGS) -o $@ |
161 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug2_la_rpath = | |
162 | 158 | libldtestplug3_la_LIBADD = |
163 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug3_la_OBJECTS = \ | |
164 | -@ENABLE_PLUGINS_TRUE@ libldtestplug3_la-testplug3.lo | |
159 | +am_libldtestplug3_la_OBJECTS = libldtestplug3_la-testplug3.lo | |
165 | 160 | libldtestplug3_la_OBJECTS = $(am_libldtestplug3_la_OBJECTS) |
166 | 161 | libldtestplug3_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
167 | 162 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
168 | 163 | $(libldtestplug3_la_CFLAGS) $(CFLAGS) \ |
169 | 164 | $(libldtestplug3_la_LDFLAGS) $(LDFLAGS) -o $@ |
170 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug3_la_rpath = | |
171 | 165 | libldtestplug4_la_LIBADD = |
172 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug4_la_OBJECTS = \ | |
173 | -@ENABLE_PLUGINS_TRUE@ libldtestplug4_la-testplug4.lo | |
166 | +am_libldtestplug4_la_OBJECTS = libldtestplug4_la-testplug4.lo | |
174 | 167 | libldtestplug4_la_OBJECTS = $(am_libldtestplug4_la_OBJECTS) |
175 | 168 | libldtestplug4_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
176 | 169 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
177 | 170 | $(libldtestplug4_la_CFLAGS) $(CFLAGS) \ |
178 | 171 | $(libldtestplug4_la_LDFLAGS) $(LDFLAGS) -o $@ |
179 | -@ENABLE_PLUGINS_TRUE@am_libldtestplug4_la_rpath = | |
180 | 172 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(infodir)" \ |
181 | 173 | "$(DESTDIR)$(man1dir)" |
182 | 174 | PROGRAMS = $(bin_PROGRAMS) |
183 | -@ENABLE_PLUGINS_TRUE@am__objects_1 = plugin.$(OBJEXT) | |
184 | 175 | am_ld_new_OBJECTS = ldgram.$(OBJEXT) ldlex-wrapper.$(OBJEXT) \ |
185 | 176 | lexsup.$(OBJEXT) ldlang.$(OBJEXT) mri.$(OBJEXT) \ |
186 | 177 | ldctor.$(OBJEXT) ldmain.$(OBJEXT) ldwrite.$(OBJEXT) \ |
187 | 178 | ldexp.$(OBJEXT) ldemul.$(OBJEXT) ldver.$(OBJEXT) \ |
188 | 179 | ldmisc.$(OBJEXT) ldfile.$(OBJEXT) ldcref.$(OBJEXT) \ |
189 | - $(am__objects_1) ldbuildid.$(OBJEXT) | |
180 | + plugin.$(OBJEXT) ldbuildid.$(OBJEXT) | |
190 | 181 | ld_new_OBJECTS = $(am_ld_new_OBJECTS) |
191 | 182 | am__DEPENDENCIES_1 = |
192 | 183 | AM_V_P = $(am__v_P_@AM_V@) |
@@ -558,16 +549,6 @@ ELF_CLFAGS = -DELF_LIST_OPTIONS=@elf_list_options@ \ | ||
558 | 549 | -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@ |
559 | 550 | |
560 | 551 | AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) |
561 | -@ENABLE_PLUGINS_FALSE@PLUGIN_C = | |
562 | - | |
563 | -# Conditionally enable the plugin interface. | |
564 | -@ENABLE_PLUGINS_TRUE@PLUGIN_C = plugin.c | |
565 | -@ENABLE_PLUGINS_FALSE@PLUGIN_H = | |
566 | -@ENABLE_PLUGINS_TRUE@PLUGIN_H = plugin.h | |
567 | -@ENABLE_PLUGINS_FALSE@PLUGIN_OBJECT = | |
568 | -@ENABLE_PLUGINS_TRUE@PLUGIN_OBJECT = plugin.@OBJEXT@ | |
569 | -@ENABLE_PLUGINS_FALSE@PLUGIN_CFLAGS = | |
570 | -@ENABLE_PLUGINS_TRUE@PLUGIN_CFLAGS = -DENABLE_PLUGINS | |
571 | 552 | |
572 | 553 | # We put the scripts in the directory $(scriptdir)/ldscripts. |
573 | 554 | # We can't put the scripts in $(datadir) because the SEARCH_DIR |
@@ -642,7 +623,7 @@ TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \ | ||
642 | 623 | -I $(top_srcdir)/../libiberty |
643 | 624 | |
644 | 625 | AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @zlibinc@ \ |
645 | - @INCINTL@ $(HDEFINES) $(CFLAGS) $(PLUGIN_CFLAGS) \ | |
626 | + @INCINTL@ $(HDEFINES) $(CFLAGS) \ | |
646 | 627 | -DLOCALEDIR="\"$(datadir)/locale\"" |
647 | 628 | |
648 | 629 | BFDLIB = ../bfd/libbfd.la |
@@ -970,12 +951,12 @@ ALL_64_EMUL_EXTRA_OFILES = \ | ||
970 | 951 | CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ |
971 | 952 | ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ |
972 | 953 | mri.c ldcref.c pe-dll.c pep-dll.c ldlex-wrapper.c \ |
973 | - $(PLUGIN_C) ldbuildid.c ldelf.c ldelfgen.c | |
954 | + plugin.c ldbuildid.c ldelf.c ldelfgen.c | |
974 | 955 | |
975 | 956 | HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ |
976 | 957 | ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \ |
977 | 958 | ldwrite.h mri.h deffile.h pe-dll.h pep-dll.h \ |
978 | - elf-hints-local.h $(PLUGIN_H) ldbuildid.h ldelf.h ldelfgen.h | |
959 | + elf-hints-local.h plugin.h ldbuildid.h ldelf.h ldelfgen.h | |
979 | 960 | |
980 | 961 | GENERATED_CFILES = ldgram.c ldlex.c deffilep.c |
981 | 962 | GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h |
@@ -984,7 +965,7 @@ GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h | ||
984 | 965 | # tracking will not cause them to be built beforehand. |
985 | 966 | BUILT_SOURCES = $(GENERATED_HFILES) |
986 | 967 | OFILES = ldgram.@OBJEXT@ ldlex-wrapper.@OBJEXT@ lexsup.@OBJEXT@ ldlang.@OBJEXT@ \ |
987 | - mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ $(PLUGIN_OBJECT) \ | |
968 | + mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ plugin.@OBJEXT@ \ | |
988 | 969 | ldwrite.@OBJEXT@ ldexp.@OBJEXT@ ldemul.@OBJEXT@ ldver.@OBJEXT@ ldmisc.@OBJEXT@ \ |
989 | 970 | ldfile.@OBJEXT@ ldcref.@OBJEXT@ ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES} \ |
990 | 971 | ldbuildid.@OBJEXT@ |
@@ -1005,7 +986,7 @@ EXTRA_ld_new_SOURCES = deffilep.y ldlex.l pep-dll.c pe-dll.c ldelf.c \ | ||
1005 | 986 | ldelfgen.c $(ALL_EMULATION_SOURCES) \ |
1006 | 987 | $(ALL_64_EMULATION_SOURCES) |
1007 | 988 | ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c mri.c ldctor.c ldmain.c \ |
1008 | - ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C) \ | |
989 | + ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c plugin.c \ | |
1009 | 990 | ldbuildid.c |
1010 | 991 | |
1011 | 992 | ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) \ |
@@ -1016,21 +997,21 @@ ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBCTF) $(LI | ||
1016 | 997 | # |
1017 | 998 | # Build a dummy plugin using libtool. |
1018 | 999 | # |
1019 | -@ENABLE_PLUGINS_TRUE@noinst_LTLIBRARIES = libldtestplug.la libldtestplug2.la \ | |
1020 | -@ENABLE_PLUGINS_TRUE@ libldtestplug3.la libldtestplug4.la | |
1021 | - | |
1022 | -@ENABLE_PLUGINS_TRUE@libldtestplug_la_SOURCES = testplug.c | |
1023 | -@ENABLE_PLUGINS_TRUE@libldtestplug_la_CFLAGS = -g -O2 | |
1024 | -@ENABLE_PLUGINS_TRUE@libldtestplug_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1025 | -@ENABLE_PLUGINS_TRUE@libldtestplug2_la_SOURCES = testplug2.c | |
1026 | -@ENABLE_PLUGINS_TRUE@libldtestplug2_la_CFLAGS = -g -O2 | |
1027 | -@ENABLE_PLUGINS_TRUE@libldtestplug2_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1028 | -@ENABLE_PLUGINS_TRUE@libldtestplug3_la_SOURCES = testplug3.c | |
1029 | -@ENABLE_PLUGINS_TRUE@libldtestplug3_la_CFLAGS = -g -O2 | |
1030 | -@ENABLE_PLUGINS_TRUE@libldtestplug3_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1031 | -@ENABLE_PLUGINS_TRUE@libldtestplug4_la_SOURCES = testplug4.c | |
1032 | -@ENABLE_PLUGINS_TRUE@libldtestplug4_la_CFLAGS = -g -O2 | |
1033 | -@ENABLE_PLUGINS_TRUE@libldtestplug4_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1000 | +noinst_LTLIBRARIES = libldtestplug.la libldtestplug2.la \ | |
1001 | + libldtestplug3.la libldtestplug4.la | |
1002 | + | |
1003 | +libldtestplug_la_SOURCES = testplug.c | |
1004 | +libldtestplug_la_CFLAGS = -g -O2 | |
1005 | +libldtestplug_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1006 | +libldtestplug2_la_SOURCES = testplug2.c | |
1007 | +libldtestplug2_la_CFLAGS = -g -O2 | |
1008 | +libldtestplug2_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1009 | +libldtestplug3_la_SOURCES = testplug3.c | |
1010 | +libldtestplug3_la_CFLAGS = -g -O2 | |
1011 | +libldtestplug3_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1012 | +libldtestplug4_la_SOURCES = testplug4.c | |
1013 | +libldtestplug4_la_CFLAGS = -g -O2 | |
1014 | +libldtestplug4_la_LDFLAGS = -no-undefined -rpath /nowhere | |
1034 | 1015 | MAINTAINERCLEANFILES = configdoc.texi ld.1 ld.info |
1035 | 1016 | |
1036 | 1017 | # We want to reconfigure if configure.host or configure.tgt changes. |
@@ -1118,16 +1099,16 @@ clean-noinstLTLIBRARIES: | ||
1118 | 1099 | } |
1119 | 1100 | |
1120 | 1101 | libldtestplug.la: $(libldtestplug_la_OBJECTS) $(libldtestplug_la_DEPENDENCIES) $(EXTRA_libldtestplug_la_DEPENDENCIES) |
1121 | - $(AM_V_CCLD)$(libldtestplug_la_LINK) $(am_libldtestplug_la_rpath) $(libldtestplug_la_OBJECTS) $(libldtestplug_la_LIBADD) $(LIBS) | |
1102 | + $(AM_V_CCLD)$(libldtestplug_la_LINK) $(libldtestplug_la_OBJECTS) $(libldtestplug_la_LIBADD) $(LIBS) | |
1122 | 1103 | |
1123 | 1104 | libldtestplug2.la: $(libldtestplug2_la_OBJECTS) $(libldtestplug2_la_DEPENDENCIES) $(EXTRA_libldtestplug2_la_DEPENDENCIES) |
1124 | - $(AM_V_CCLD)$(libldtestplug2_la_LINK) $(am_libldtestplug2_la_rpath) $(libldtestplug2_la_OBJECTS) $(libldtestplug2_la_LIBADD) $(LIBS) | |
1105 | + $(AM_V_CCLD)$(libldtestplug2_la_LINK) $(libldtestplug2_la_OBJECTS) $(libldtestplug2_la_LIBADD) $(LIBS) | |
1125 | 1106 | |
1126 | 1107 | libldtestplug3.la: $(libldtestplug3_la_OBJECTS) $(libldtestplug3_la_DEPENDENCIES) $(EXTRA_libldtestplug3_la_DEPENDENCIES) |
1127 | - $(AM_V_CCLD)$(libldtestplug3_la_LINK) $(am_libldtestplug3_la_rpath) $(libldtestplug3_la_OBJECTS) $(libldtestplug3_la_LIBADD) $(LIBS) | |
1108 | + $(AM_V_CCLD)$(libldtestplug3_la_LINK) $(libldtestplug3_la_OBJECTS) $(libldtestplug3_la_LIBADD) $(LIBS) | |
1128 | 1109 | |
1129 | 1110 | libldtestplug4.la: $(libldtestplug4_la_OBJECTS) $(libldtestplug4_la_DEPENDENCIES) $(EXTRA_libldtestplug4_la_DEPENDENCIES) |
1130 | - $(AM_V_CCLD)$(libldtestplug4_la_LINK) $(am_libldtestplug4_la_rpath) $(libldtestplug4_la_OBJECTS) $(libldtestplug4_la_LIBADD) $(LIBS) | |
1111 | + $(AM_V_CCLD)$(libldtestplug4_la_LINK) $(libldtestplug4_la_OBJECTS) $(libldtestplug4_la_LIBADD) $(LIBS) | |
1131 | 1112 | install-binPROGRAMS: $(bin_PROGRAMS) |
1132 | 1113 | @$(NORMAL_INSTALL) |
1133 | 1114 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ |
@@ -649,8 +649,6 @@ STRINGIFY | ||
649 | 649 | zlibinc |
650 | 650 | zlibdir |
651 | 651 | enable_initfini_array |
652 | -ENABLE_PLUGINS_FALSE | |
653 | -ENABLE_PLUGINS_TRUE | |
654 | 652 | NATIVE_LIB_DIRS |
655 | 653 | HDEFINES |
656 | 654 | do_compare |
@@ -12035,7 +12033,7 @@ else | ||
12035 | 12033 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12036 | 12034 | lt_status=$lt_dlunknown |
12037 | 12035 | cat > conftest.$ac_ext <<_LT_EOF |
12038 | -#line 12038 "configure" | |
12036 | +#line 12036 "configure" | |
12039 | 12037 | #include "confdefs.h" |
12040 | 12038 | |
12041 | 12039 | #if HAVE_DLFCN_H |
@@ -12141,7 +12139,7 @@ else | ||
12141 | 12139 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12142 | 12140 | lt_status=$lt_dlunknown |
12143 | 12141 | cat > conftest.$ac_ext <<_LT_EOF |
12144 | -#line 12144 "configure" | |
12142 | +#line 12142 "configure" | |
12145 | 12143 | #include "confdefs.h" |
12146 | 12144 | |
12147 | 12145 | #if HAVE_DLFCN_H |
@@ -17285,14 +17283,6 @@ if test "$ac_res" != no; then : | ||
17285 | 17283 | |
17286 | 17284 | fi |
17287 | 17285 | |
17288 | - if test x$plugins = xyes; then | |
17289 | - ENABLE_PLUGINS_TRUE= | |
17290 | - ENABLE_PLUGINS_FALSE='#' | |
17291 | -else | |
17292 | - ENABLE_PLUGINS_TRUE='#' | |
17293 | - ENABLE_PLUGINS_FALSE= | |
17294 | -fi | |
17295 | - | |
17296 | 17286 | |
17297 | 17287 | # Check whether --enable-initfini-array was given. |
17298 | 17288 | if test "${enable_initfini_array+set}" = set; then : |
@@ -17890,10 +17880,6 @@ if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then | ||
17890 | 17880 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
17891 | 17881 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17892 | 17882 | fi |
17893 | -if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then | |
17894 | - as_fn_error $? "conditional \"ENABLE_PLUGINS\" was never defined. | |
17895 | -Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17896 | -fi | |
17897 | 17883 | |
17898 | 17884 | : "${CONFIG_STATUS=./config.status}" |
17899 | 17885 | ac_write_fail=0 |
@@ -274,7 +274,6 @@ dnl AC_CHECK_HEADERS(sys/mman.h) | ||
274 | 274 | AC_FUNC_MMAP |
275 | 275 | |
276 | 276 | AC_SEARCH_LIBS([dlopen], [dl]) |
277 | -AM_CONDITIONAL([ENABLE_PLUGINS], [test x$plugins = xyes]) | |
278 | 277 | |
279 | 278 | AC_ARG_ENABLE(initfini-array, |
280 | 279 | [ --disable-initfini-array do not use .init_array/.fini_array sections], |
@@ -34,10 +34,10 @@ | ||
34 | 34 | #include "ldemul.h" |
35 | 35 | #include "libiberty.h" |
36 | 36 | #include "filenames.h" |
37 | -#ifdef ENABLE_PLUGINS | |
37 | +#if BFD_SUPPORTS_PLUGINS | |
38 | 38 | #include "plugin-api.h" |
39 | 39 | #include "plugin.h" |
40 | -#endif /* ENABLE_PLUGINS */ | |
40 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
41 | 41 | |
42 | 42 | bfd_boolean ldfile_assumed_script = FALSE; |
43 | 43 | const char *ldfile_output_machine_name = ""; |
@@ -148,7 +148,7 @@ ldfile_try_open_bfd (const char *attempt, | ||
148 | 148 | /* This is a linker input BFD. */ |
149 | 149 | entry->the_bfd->is_linker_input = 1; |
150 | 150 | |
151 | -#ifdef ENABLE_PLUGINS | |
151 | +#if BFD_SUPPORTS_PLUGINS | |
152 | 152 | if (entry->flags.lto_output) |
153 | 153 | entry->the_bfd->lto_output = 1; |
154 | 154 | #endif |
@@ -302,7 +302,7 @@ ldfile_try_open_bfd (const char *attempt, | ||
302 | 302 | } |
303 | 303 | } |
304 | 304 | success: |
305 | -#ifdef ENABLE_PLUGINS | |
305 | +#if BFD_SUPPORTS_PLUGINS | |
306 | 306 | /* If plugins are active, they get first chance to claim |
307 | 307 | any successfully-opened input file. We skip archives |
308 | 308 | here; the plugin wants us to offer it the individual |
@@ -316,7 +316,7 @@ ldfile_try_open_bfd (const char *attempt, | ||
316 | 316 | && !no_more_claiming |
317 | 317 | && bfd_check_format (entry->the_bfd, bfd_object)) |
318 | 318 | plugin_maybe_claim (entry); |
319 | -#endif /* ENABLE_PLUGINS */ | |
319 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
320 | 320 | |
321 | 321 | /* It opened OK, the format checked out, and the plugins have had |
322 | 322 | their chance to claim it, so this is success. */ |
@@ -42,9 +42,9 @@ | ||
42 | 42 | #include "demangle.h" |
43 | 43 | #include "hashtab.h" |
44 | 44 | #include "elf-bfd.h" |
45 | -#ifdef ENABLE_PLUGINS | |
45 | +#if BFD_SUPPORTS_PLUGINS | |
46 | 46 | #include "plugin.h" |
47 | -#endif /* ENABLE_PLUGINS */ | |
47 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
48 | 48 | |
49 | 49 | #ifndef offsetof |
50 | 50 | #define offsetof(TYPE, MEMBER) ((size_t) & (((TYPE*) 0)->MEMBER)) |
@@ -3526,7 +3526,7 @@ enum open_bfd_mode | ||
3526 | 3526 | OPEN_BFD_FORCE = 1, |
3527 | 3527 | OPEN_BFD_RESCAN = 2 |
3528 | 3528 | }; |
3529 | -#ifdef ENABLE_PLUGINS | |
3529 | +#if BFD_SUPPORTS_PLUGINS | |
3530 | 3530 | static lang_input_statement_type *plugin_insert = NULL; |
3531 | 3531 | static struct bfd_link_hash_entry *plugin_undefs = NULL; |
3532 | 3532 | #endif |
@@ -3556,7 +3556,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
3556 | 3556 | case lang_group_statement_enum: |
3557 | 3557 | { |
3558 | 3558 | struct bfd_link_hash_entry *undefs; |
3559 | -#ifdef ENABLE_PLUGINS | |
3559 | +#if BFD_SUPPORTS_PLUGINS | |
3560 | 3560 | lang_input_statement_type *plugin_insert_save; |
3561 | 3561 | #endif |
3562 | 3562 |
@@ -3566,7 +3566,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
3566 | 3566 | |
3567 | 3567 | do |
3568 | 3568 | { |
3569 | -#ifdef ENABLE_PLUGINS | |
3569 | +#if BFD_SUPPORTS_PLUGINS | |
3570 | 3570 | plugin_insert_save = plugin_insert; |
3571 | 3571 | #endif |
3572 | 3572 | undefs = link_info.hash->undefs_tail; |
@@ -3574,7 +3574,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
3574 | 3574 | mode | OPEN_BFD_FORCE); |
3575 | 3575 | } |
3576 | 3576 | while (undefs != link_info.hash->undefs_tail |
3577 | -#ifdef ENABLE_PLUGINS | |
3577 | +#if BFD_SUPPORTS_PLUGINS | |
3578 | 3578 | /* Objects inserted by a plugin, which are loaded |
3579 | 3579 | before we hit this loop, may have added new |
3580 | 3580 | undefs. */ |
@@ -3601,7 +3601,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
3601 | 3601 | has been loaded already. Do the same for a rescan. |
3602 | 3602 | Likewise reload --as-needed shared libs. */ |
3603 | 3603 | if (mode != OPEN_BFD_NORMAL |
3604 | -#ifdef ENABLE_PLUGINS | |
3604 | +#if BFD_SUPPORTS_PLUGINS | |
3605 | 3605 | && ((mode & OPEN_BFD_RESCAN) == 0 |
3606 | 3606 | || plugin_insert == NULL) |
3607 | 3607 | #endif |
@@ -3648,7 +3648,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) | ||
3648 | 3648 | } |
3649 | 3649 | } |
3650 | 3650 | } |
3651 | -#ifdef ENABLE_PLUGINS | |
3651 | +#if BFD_SUPPORTS_PLUGINS | |
3652 | 3652 | /* If we have found the point at which a plugin added new |
3653 | 3653 | files, clear plugin_insert to enable archive rescan. */ |
3654 | 3654 | if (&s->input_statement == plugin_insert) |
@@ -6899,11 +6899,11 @@ lang_check (void) | ||
6899 | 6899 | file != NULL; |
6900 | 6900 | file = file->next) |
6901 | 6901 | { |
6902 | -#ifdef ENABLE_PLUGINS | |
6902 | +#if BFD_SUPPORTS_PLUGINS | |
6903 | 6903 | /* Don't check format of files claimed by plugin. */ |
6904 | 6904 | if (file->flags.claimed) |
6905 | 6905 | continue; |
6906 | -#endif /* ENABLE_PLUGINS */ | |
6906 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
6907 | 6907 | input_bfd = file->the_bfd; |
6908 | 6908 | compatible |
6909 | 6909 | = bfd_arch_get_compatible (input_bfd, link_info.output_bfd, |
@@ -7438,7 +7438,7 @@ lang_gc_sections (void) | ||
7438 | 7438 | LANG_FOR_EACH_INPUT_STATEMENT (f) |
7439 | 7439 | { |
7440 | 7440 | asection *sec; |
7441 | -#ifdef ENABLE_PLUGINS | |
7441 | +#if BFD_SUPPORTS_PLUGINS | |
7442 | 7442 | if (f->flags.claimed) |
7443 | 7443 | continue; |
7444 | 7444 | #endif |
@@ -7585,7 +7585,7 @@ lang_relax_sections (bfd_boolean need_layout) | ||
7585 | 7585 | } |
7586 | 7586 | } |
7587 | 7587 | |
7588 | -#ifdef ENABLE_PLUGINS | |
7588 | +#if BFD_SUPPORTS_PLUGINS | |
7589 | 7589 | /* Find the insert point for the plugin's replacement files. We |
7590 | 7590 | place them after the first claimed real object file, or if the |
7591 | 7591 | first claimed object is an archive member, after the last real |
@@ -7728,7 +7728,7 @@ find_next_input_statement (lang_statement_union_type **s) | ||
7728 | 7728 | } |
7729 | 7729 | return s; |
7730 | 7730 | } |
7731 | -#endif /* ENABLE_PLUGINS */ | |
7731 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
7732 | 7732 | |
7733 | 7733 | /* Add NAME to the list of garbage collection entry points. */ |
7734 | 7734 |
@@ -7819,7 +7819,7 @@ lang_process (void) | ||
7819 | 7819 | to symbolic origin/length now. */ |
7820 | 7820 | lang_do_memory_regions (); |
7821 | 7821 | |
7822 | -#ifdef ENABLE_PLUGINS | |
7822 | +#if BFD_SUPPORTS_PLUGINS | |
7823 | 7823 | if (link_info.lto_plugin_active) |
7824 | 7824 | { |
7825 | 7825 | lang_statement_list_type added; |
@@ -7922,7 +7922,7 @@ lang_process (void) | ||
7922 | 7922 | } |
7923 | 7923 | } |
7924 | 7924 | } |
7925 | -#endif /* ENABLE_PLUGINS */ | |
7925 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
7926 | 7926 | |
7927 | 7927 | /* Make sure that nobody has tried to add a symbol to this list |
7928 | 7928 | before now. */ |
@@ -271,7 +271,7 @@ struct lang_input_statement_flags | ||
271 | 271 | /* Set if reloading an archive or --as-needed lib. */ |
272 | 272 | unsigned int reload : 1; |
273 | 273 | |
274 | -#ifdef ENABLE_PLUGINS | |
274 | +#if BFD_SUPPORTS_PLUGINS | |
275 | 275 | /* Set if the file was claimed by a plugin. */ |
276 | 276 | unsigned int claimed : 1; |
277 | 277 |
@@ -280,7 +280,7 @@ struct lang_input_statement_flags | ||
280 | 280 | |
281 | 281 | /* Set if added by the lto plugin add_input_file callback. */ |
282 | 282 | unsigned int lto_output : 1; |
283 | -#endif /* ENABLE_PLUGINS */ | |
283 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
284 | 284 | |
285 | 285 | /* Head of list of pushed flags. */ |
286 | 286 | struct lang_input_statement_flags *pushed; |
@@ -135,10 +135,10 @@ enum option_values | ||
135 | 135 | OPTION_WARN_TEXTREL, |
136 | 136 | OPTION_WARN_ALTERNATE_EM, |
137 | 137 | OPTION_REDUCE_MEMORY_OVERHEADS, |
138 | -#ifdef ENABLE_PLUGINS | |
138 | +#if BFD_SUPPORTS_PLUGINS | |
139 | 139 | OPTION_PLUGIN, |
140 | 140 | OPTION_PLUGIN_OPT, |
141 | -#endif /* ENABLE_PLUGINS */ | |
141 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
142 | 142 | OPTION_DEFAULT_SCRIPT, |
143 | 143 | OPTION_PRINT_OUTPUT_FORMAT, |
144 | 144 | OPTION_PRINT_SYSROOT, |
@@ -40,10 +40,10 @@ | ||
40 | 40 | #include "ldfile.h" |
41 | 41 | #include "ldemul.h" |
42 | 42 | #include "ldctor.h" |
43 | -#ifdef ENABLE_PLUGINS | |
43 | +#if BFD_SUPPORTS_PLUGINS | |
44 | 44 | #include "plugin.h" |
45 | 45 | #include "plugin-api.h" |
46 | -#endif /* ENABLE_PLUGINS */ | |
46 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
47 | 47 | |
48 | 48 | /* Somewhere above, sys/stat.h got included. */ |
49 | 49 | #if !defined(S_ISDIR) && defined(S_IFDIR) |
@@ -164,7 +164,7 @@ static void | ||
164 | 164 | ld_cleanup (void) |
165 | 165 | { |
166 | 166 | bfd_cache_close_all (); |
167 | -#ifdef ENABLE_PLUGINS | |
167 | +#if BFD_SUPPORTS_PLUGINS | |
168 | 168 | plugin_call_cleanup (); |
169 | 169 | #endif |
170 | 170 | if (output_filename && delete_output_file_on_failure) |
@@ -323,10 +323,10 @@ main (int argc, char **argv) | ||
323 | 323 | if (config.hash_table_size != 0) |
324 | 324 | bfd_hash_set_default_size (config.hash_table_size); |
325 | 325 | |
326 | -#ifdef ENABLE_PLUGINS | |
326 | +#if BFD_SUPPORTS_PLUGINS | |
327 | 327 | /* Now all the plugin arguments have been gathered, we can load them. */ |
328 | 328 | plugin_load_plugins (); |
329 | -#endif /* ENABLE_PLUGINS */ | |
329 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
330 | 330 | |
331 | 331 | ldemul_set_symbols (); |
332 | 332 |
@@ -830,7 +830,7 @@ add_archive_element (struct bfd_link_info *info, | ||
830 | 830 | (if enabled) may possibly alter it to point to a replacement |
831 | 831 | BFD, but we still want to output the original BFD filename. */ |
832 | 832 | orig_input = *input; |
833 | -#ifdef ENABLE_PLUGINS | |
833 | +#if BFD_SUPPORTS_PLUGINS | |
834 | 834 | if (link_info.lto_plugin_active) |
835 | 835 | { |
836 | 836 | /* We must offer this archive member to the plugins to claim. */ |
@@ -851,7 +851,7 @@ add_archive_element (struct bfd_link_info *info, | ||
851 | 851 | *subsbfd = input->the_bfd; |
852 | 852 | } |
853 | 853 | } |
854 | -#endif /* ENABLE_PLUGINS */ | |
854 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
855 | 855 | |
856 | 856 | ldlang_add_file (input); |
857 | 857 |
@@ -39,9 +39,9 @@ | ||
39 | 39 | #include "ldver.h" |
40 | 40 | #include "ldemul.h" |
41 | 41 | #include "demangle.h" |
42 | -#ifdef ENABLE_PLUGINS | |
42 | +#if BFD_SUPPORTS_PLUGINS | |
43 | 43 | #include "plugin.h" |
44 | -#endif /* ENABLE_PLUGINS */ | |
44 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
45 | 45 | |
46 | 46 | #ifndef PATH_SEPARATOR |
47 | 47 | #if defined (__MSDOS__) || (defined (_WIN32) && ! defined (__CYGWIN32__)) |
@@ -174,7 +174,7 @@ static const struct ld_option ld_options[] = | ||
174 | 174 | 'O', NULL, N_("Optimize output file"), ONE_DASH }, |
175 | 175 | { {"out-implib", required_argument, NULL, OPTION_OUT_IMPLIB}, |
176 | 176 | '\0', N_("FILE"), N_("Generate import library"), TWO_DASHES }, |
177 | -#ifdef ENABLE_PLUGINS | |
177 | +#if BFD_SUPPORTS_PLUGINS | |
178 | 178 | { {"plugin", required_argument, NULL, OPTION_PLUGIN}, |
179 | 179 | '\0', N_("PLUGIN"), N_("Load named plugin"), ONE_DASH }, |
180 | 180 | { {"plugin-opt", required_argument, NULL, OPTION_PLUGIN_OPT}, |
@@ -190,7 +190,7 @@ static const struct ld_option ld_options[] = | ||
190 | 190 | '\0', N_("PLUGIN"), N_("Load named plugin (ignored)"), ONE_DASH }, |
191 | 191 | { {"plugin-opt", required_argument, NULL, OPTION_IGNORE}, |
192 | 192 | '\0', N_("ARG"), N_("Send arg to last-loaded plugin (ignored)"), ONE_DASH }, |
193 | -#endif /* ENABLE_PLUGINS */ | |
193 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
194 | 194 | { {"fuse-ld=", required_argument, NULL, OPTION_IGNORE}, |
195 | 195 | '\0', NULL, N_("Ignored for GCC linker option compatibility"), |
196 | 196 | ONE_DASH }, |
@@ -1066,7 +1066,7 @@ parse_args (unsigned argc, char **argv) | ||
1066 | 1066 | case OPTION_PRINT_OUTPUT_FORMAT: |
1067 | 1067 | command_line.print_output_format = TRUE; |
1068 | 1068 | break; |
1069 | -#ifdef ENABLE_PLUGINS | |
1069 | +#if BFD_SUPPORTS_PLUGINS | |
1070 | 1070 | case OPTION_PLUGIN: |
1071 | 1071 | plugin_opt_plugin (optarg); |
1072 | 1072 | break; |
@@ -1074,7 +1074,7 @@ parse_args (unsigned argc, char **argv) | ||
1074 | 1074 | if (plugin_opt_plugin_arg (optarg)) |
1075 | 1075 | einfo (_("%F%P: bad -plugin-opt option\n")); |
1076 | 1076 | break; |
1077 | -#endif /* ENABLE_PLUGINS */ | |
1077 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
1078 | 1078 | case 'q': |
1079 | 1079 | link_info.emitrelocations = TRUE; |
1080 | 1080 | break; |
@@ -1368,9 +1368,9 @@ parse_args (unsigned argc, char **argv) | ||
1368 | 1368 | int level ATTRIBUTE_UNUSED = strtoul (optarg, &end, 0); |
1369 | 1369 | if (*end) |
1370 | 1370 | einfo (_("%F%P: invalid number `%s'\n"), optarg); |
1371 | -#ifdef ENABLE_PLUGINS | |
1371 | +#if BFD_SUPPORTS_PLUGINS | |
1372 | 1372 | report_plugin_symbols = level > 1; |
1373 | -#endif /* ENABLE_PLUGINS */ | |
1373 | +#endif /* BFD_SUPPORTS_PLUGINS */ | |
1374 | 1374 | } |
1375 | 1375 | break; |
1376 | 1376 | case 'v': |
@@ -21,6 +21,7 @@ | ||
21 | 21 | #include "sysdep.h" |
22 | 22 | #include "libiberty.h" |
23 | 23 | #include "bfd.h" |
24 | +#if BFD_SUPPORTS_PLUGINS | |
24 | 25 | #include "bfdlink.h" |
25 | 26 | #include "bfdver.h" |
26 | 27 | #include "ctf-api.h" |
@@ -1462,3 +1463,4 @@ plugin_notice (struct bfd_link_info *info, | ||
1462 | 1463 | abfd, section, value, flags); |
1463 | 1464 | return TRUE; |
1464 | 1465 | } |
1466 | +#endif /* BFD_SUPPORTS_PLUGINS */ |
@@ -20,6 +20,7 @@ | ||
20 | 20 | |
21 | 21 | #include "sysdep.h" |
22 | 22 | #include "bfd.h" |
23 | +#if BFD_SUPPORTS_PLUGINS | |
23 | 24 | #include "plugin-api.h" |
24 | 25 | /* For ARRAY_SIZE macro only - we don't link the library itself. */ |
25 | 26 | #include "libiberty.h" |
@@ -669,3 +670,4 @@ oncleanup (void) | ||
669 | 670 | fflush (NULL); |
670 | 671 | return cleanup_ret; |
671 | 672 | } |
673 | +#endif /* BFD_SUPPORTS_PLUGINS */ |
@@ -21,6 +21,7 @@ | ||
21 | 21 | |
22 | 22 | #include "sysdep.h" |
23 | 23 | #include "bfd.h" |
24 | +#if BFD_SUPPORTS_PLUGINS | |
24 | 25 | #include "plugin-api.h" |
25 | 26 | #include "filenames.h" |
26 | 27 | /* For ARRAY_SIZE macro only - we don't link the library itself. */ |
@@ -669,3 +670,4 @@ oncleanup (void) | ||
669 | 670 | fflush (NULL); |
670 | 671 | return cleanup_ret; |
671 | 672 | } |
673 | +#endif /* BFD_SUPPORTS_PLUGINS */ |
@@ -21,6 +21,7 @@ | ||
21 | 21 | |
22 | 22 | #include "sysdep.h" |
23 | 23 | #include "bfd.h" |
24 | +#if BFD_SUPPORTS_PLUGINS | |
24 | 25 | #include "plugin-api.h" |
25 | 26 | #include "filenames.h" |
26 | 27 | /* For ARRAY_SIZE macro only - we don't link the library itself. */ |
@@ -627,3 +628,4 @@ oncleanup (void) | ||
627 | 628 | fflush (NULL); |
628 | 629 | return cleanup_ret; |
629 | 630 | } |
631 | +#endif /* BFD_SUPPORTS_PLUGINS */ |
@@ -21,6 +21,7 @@ | ||
21 | 21 | |
22 | 22 | #include "sysdep.h" |
23 | 23 | #include "bfd.h" |
24 | +#if BFD_SUPPORTS_PLUGINS | |
24 | 25 | #include "plugin-api.h" |
25 | 26 | #include "filenames.h" |
26 | 27 | /* For ARRAY_SIZE macro only - we don't link the library itself. */ |
@@ -675,3 +676,4 @@ oncleanup (void) | ||
675 | 676 | fflush (NULL); |
676 | 677 | return cleanup_ret; |
677 | 678 | } |
679 | +#endif /* BFD_SUPPORTS_PLUGINS */ |