[uClibc-cvs] uClibc/extra/Configs Config.in,1.15,1.16

Erik Andersen andersen at codepoet.org
Wed Feb 5 07:45:38 UTC 2003


Update of /var/cvs/uClibc/extra/Configs
In directory winder:/tmp/cvs-serv4703/extra/Configs

Modified Files:
	Config.in 
Log Message:
Patch from Stefan Allius to make adding libgcc functions to the library an
option, to avoid the possibility of adding non PIC code into the shared PIC
uClibc library, thereby making the .text segment unshareable.


Index: Config.in
===================================================================
RCS file: /var/cvs/uClibc/extra/Configs/Config.in,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Config.in	13 Dec 2002 22:43:37 -0000	1.15
+++ Config.in	5 Feb 2003 07:45:34 -0000	1.16
@@ -27,6 +27,23 @@
 	  answer Y here.  If you only want to build uClibc as a static library,
 	  then answer N.
 
+config ADD_LIBGCC_FUNCTIONS
+	bool "Add unresolved libgcc symbols to uClibc"
+	depends on HAVE_SHARED
+	default n
+	help
+	  If you answer Y here, all unresolved functions provided by the libgcc
+	  library that are used by uClibc will be added directly into the
+	  uClibc library.  If your gcc compiler only provides a static libgcc
+	  library, then enabling this option can reduce the size of your
+	  binaries by preventing these functions from being staticly linked
+	  into every binary.  If you have compiled uClibc as PIC code, one
+	  potential size effect of this option is that you may end up adding
+	  non-PIC libgcc code into your shared uClibc library, resulting in a
+	  non shareable text segment (thereby wasting a bunch of ram).  If your
+	  compiler supports a shared libgcc library, you should certainly leave
+	  this option disabled.  Regardless, the safest answer is N.
+
 config BUILD_UCLIBC_LDSO
 	bool "Compile native shared library loader"
 	depends on HAVE_SHARED
@@ -39,7 +56,7 @@
 
 config FORCE_SHAREABLE_TEXT_SEGMENTS
 	bool "Only load shared libraries which can share their text segment"
-	depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PIC
+	depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PIC && !ADD_LIBGCC_SYMBOLS
 	default n
 	help
 	  If you answer Y here, the uClibc native shared library loader will




More information about the uClibc-cvs mailing list