]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 5 Apr 1999 21:04:13 +0000 (21:04 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 5 Apr 1999 21:04:13 +0000 (21:04 +0000)
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.

ChangeLog
ltconfig.in

index 2f36a8b4e4e7daf44b2934cea332ce050647b8ec..77b9f31bf86c3212b889a4240a24839c6cd8d808 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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,
index 837ad4fcabd457a2de7b9f29f30c502272089734..75863f2b544a9c0be0549085d8ba3f0bb07a619d 100755 (executable)
@@ -1015,7 +1015,12 @@ include_expsyms=
 # 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*)
@@ -1027,10 +1032,6 @@ cygwin* | mingw*)
   fi
   ;;
 
-freebsd2* | sunos4*)
-  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
-  ;;
-
 esac
 
 ld_shlibs=yes