]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* doc/libtool.texi (Library tips): Note array dimensions.
authorKevin Ryde <user42@zip.com.au>
Mon, 18 Nov 2002 16:09:42 +0000 (16:09 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Mon, 18 Nov 2002 16:09:42 +0000 (16:09 +0000)
ChangeLog
doc/libtool.texi

index 55bf8ae815ffc2a1d5b499e93e8e32e462f338f1..6fd9111c02ba3d2dd58985542799d41ab56f0a52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2002-11-18  Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+2002-11-18  Kevin Ryde  <user42@zip.com.au>
+
+       * doc/libtool.texi (Library tips): Note array dimensions.
+
+2002-11-18  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
 
        * tests/*.test: MinGW's MSYS treats files under /dev
        specially. This causes 'test -r /dev/null/config/site' to
index 1b2e50d81c90979dac4041cc7384b1b7add26203..f9735df9ccaba362b0c7af45cf8b019628e8e207 100644 (file)
@@ -2249,6 +2249,15 @@ The fewer global functions your library has, the more flexibility you'll
 have in changing them.  Static functions and variables may change forms
 as often as you like@dots{} your users cannot access them, so they
 aren't interface changes.
+
+@item Be careful with array dimensions
+The number of elements in a global array is part of an interface, even
+if the header just declares @code{extern int foo[];}.  This is because
+on i386 and some other SVR4/ELF systems, when an application
+references data in a shared library the size of that data (whatever
+its type) is included in the application executable.  If you might
+want to change the size of an array or string then provide a pointer
+not the actual array.
 @end table
 
 @menu