default, as most a.out platforms use it, and end up in trouble if
we preload it, so it's safer to rule it out by default, and
special case its removal from exclude_expsyms if someone ever
complains.
+1999-04-05 Alexandre Oliva <oliva@dcc.unicamp.br>
+
+ * ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by
+ default, as most a.out platforms use it, and end up in trouble if
+ we preload it, so it's safer to rule it out by default, and
+ special case its removal from exclude_expsyms if someone ever
+ complains.
+
1999-04-05 Thomas Tanner <tanner@gmx.de>
* doc/libtool.texi: reorder tests to reflect execution order,
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
# as well as any symbol that contains `d'.
-exclude_expsyms=
+exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+# platforms (ab)use it in PIC code, but their linkers get confused if
+# the symbol is explicitly referenced. Since portable code cannot
+# rely on this symbol name, it's probably fine to never include it in
+# preloaded symbol tables.
case "$host_os" in
cygwin* | mingw*)
fi
;;
-freebsd2* | sunos4*)
- exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
- ;;
-
esac
ld_shlibs=yes