]> 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:32 +0000 (21:04 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 5 Apr 1999 21:04:32 +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 34a2e7c845294a1fd6441d309a73e888901c82cb..8f3c8e5cd444f6b4bab3535211d147f331633ba4 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 bdf14c1dd314e319d638b7d8243b123295fc66f0..21a380ec7d5a076d5506bd9650dab691a337c68f 100755 (executable)
@@ -1018,7 +1018,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.
 extract_expsyms_cmds=
 
 case "$host_os" in
@@ -1031,10 +1036,6 @@ cygwin* | mingw*)
   fi
   ;;
 
-freebsd2* | sunos4*)
-  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
-  ;;
-
 esac
 
 ld_shlibs=yes