Config.in 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. mainmenu "uClibc C Library Configuration"
  6. choice
  7. prompt "Target Architecture"
  8. default TARGET_i386
  9. help
  10. Stuff
  11. config TARGET_alpha
  12. bool "alpha"
  13. config TARGET_arm
  14. bool "arm"
  15. config TARGET_bfin
  16. bool "bfin"
  17. config TARGET_cris
  18. bool "cris"
  19. config TARGET_e1
  20. bool "e1"
  21. config TARGET_frv
  22. bool "frv"
  23. config TARGET_h8300
  24. bool "h8300"
  25. config TARGET_i386
  26. bool "i386"
  27. config TARGET_i960
  28. bool "i960"
  29. config TARGET_m68k
  30. bool "m68k"
  31. config TARGET_microblaze
  32. bool "microblaze"
  33. config TARGET_mips
  34. bool "mips"
  35. config TARGET_nios
  36. bool "nios"
  37. config TARGET_nios2
  38. bool "nios2"
  39. config TARGET_powerpc
  40. bool "powerpc"
  41. config TARGET_sh
  42. bool "superh"
  43. config TARGET_sh64
  44. bool "sh64"
  45. config TARGET_sparc
  46. bool "sparc"
  47. config TARGET_v850
  48. bool "v850"
  49. config TARGET_x86_64
  50. bool "x86_64"
  51. endchoice
  52. menu "Target Architecture Features and Options"
  53. if TARGET_alpha
  54. source "extra/Configs/Config.alpha"
  55. endif
  56. if TARGET_arm
  57. source "extra/Configs/Config.arm"
  58. endif
  59. if TARGET_bfin
  60. source "extra/Configs/Config.bfin"
  61. endif
  62. if TARGET_cris
  63. source "extra/Configs/Config.cris"
  64. endif
  65. if TARGET_e1
  66. source "extra/Configs/Config.e1"
  67. endif
  68. if TARGET_frv
  69. source "extra/Configs/Config.frv"
  70. endif
  71. if TARGET_h8300
  72. source "extra/Configs/Config.h8300"
  73. endif
  74. if TARGET_i386
  75. source "extra/Configs/Config.i386"
  76. endif
  77. if TARGET_i960
  78. source "extra/Configs/Config.i960"
  79. endif
  80. if TARGET_m68k
  81. source "extra/Configs/Config.m68k"
  82. endif
  83. if TARGET_nios
  84. source "extra/Configs/Config.nios"
  85. endif
  86. if TARGET_nios2
  87. source "extra/Configs/Config.nios2"
  88. endif
  89. if TARGET_microblaze
  90. source "extra/Configs/Config.microblaze"
  91. endif
  92. if TARGET_mips
  93. source "extra/Configs/Config.mips"
  94. endif
  95. if TARGET_powerpc
  96. source "extra/Configs/Config.powerpc"
  97. endif
  98. if TARGET_sh
  99. source "extra/Configs/Config.sh"
  100. endif
  101. if TARGET_sh64
  102. source "extra/Configs/Config.sh64"
  103. endif
  104. if TARGET_sparc
  105. source "extra/Configs/Config.sparc"
  106. endif
  107. if TARGET_v850
  108. source "extra/Configs/Config.v850"
  109. endif
  110. if TARGET_x86_64
  111. source "extra/Configs/Config.x86_64"
  112. endif
  113. source "extra/Configs/Config.in.arch"
  114. endmenu
  115. menu "General Library Settings"
  116. config HAVE_NO_PIC
  117. bool
  118. default n
  119. config DOPIC
  120. bool "Generate Position Independent Code (PIC)"
  121. default y
  122. depends !HAVE_NO_PIC
  123. help
  124. If you wish to build uClibc with support for shared libraries then
  125. answer Y here. If you only want to build uClibc as a static library,
  126. then answer N.
  127. config HAVE_NO_SHARED
  128. bool
  129. default n
  130. config HAVE_SHARED
  131. bool "Enable support for shared libraries"
  132. depends on DOPIC && !HAVE_NO_SHARED
  133. default y
  134. help
  135. If you wish to build uClibc with support for shared libraries then
  136. answer Y here. If you only want to build uClibc as a static library,
  137. then answer N.
  138. config ARCH_HAS_NO_LDSO
  139. bool
  140. default n
  141. config BUILD_UCLIBC_LDSO
  142. bool "Compile native shared library loader"
  143. depends on HAVE_SHARED && !ARCH_HAS_NO_LDSO
  144. default y
  145. help
  146. uClibc has a native shared library loader for some architectures.
  147. If you answer Y here, the uClibc native shared library loader will
  148. be built for your target architecture. If this option is available,
  149. to you, then you almost certainly want to answer Y.
  150. config FORCE_SHAREABLE_TEXT_SEGMENTS
  151. bool "Only load shared libraries which can share their text segment"
  152. depends on BUILD_UCLIBC_LDSO
  153. default n
  154. help
  155. If you answer Y here, the uClibc native shared library loader will
  156. only load shared libraries, which do not need to modify any non-writable
  157. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  158. section (==> objdump). So all your libraries must be compiled with
  159. -fPIC or -fpic, and all assembler function must be written as position
  160. independent code (PIC).
  161. Enabling this option will makes uClibc's shared library loader a
  162. little bit smaller and guarantee that no memory will be wasted by badly
  163. coded shared libraries.
  164. config LDSO_LDD_SUPPORT
  165. bool "Native shared library loader 'ldd' support"
  166. depends on BUILD_UCLIBC_LDSO
  167. default y
  168. help
  169. Enable this to enable all the code needed to support traditional ldd,
  170. which executes the shared library loader to resolve all dependencies
  171. and then provide a list of shared libraries that are required for an
  172. application to function. Disabling this option will makes uClibc's
  173. shared library loader a little bit smaller. Most people will answer Y.
  174. config LDSO_CACHE_SUPPORT
  175. bool "Enable shared library loader cache"
  176. depends on BUILD_UCLIBC_LDSO
  177. default y
  178. help
  179. Enable this to make use of /etc/ld.so.conf, the shared library loader
  180. cache configuration file to support for non-standard library paths.
  181. After updating this file, it is necessary to run 'ldconfig' to update
  182. the /etc/ld.so.cache shared library loader cache file.
  183. config LDSO_PRELOAD_FILE_SUPPORT
  184. bool "Enable shared library loader preload file support"
  185. depends on BUILD_UCLIBC_LDSO
  186. default n
  187. help
  188. Enable this to make use of /etc/ld.so.preload. This file contains a
  189. whitespace separated list of shared libraries to be loaded before
  190. the program.
  191. config LDSO_BASE_FILENAME
  192. string "Shared library loader naming prefix"
  193. depends on BUILD_UCLIBC_LDSO && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  194. default "ld.so"
  195. help
  196. If you wish to support both uClibc and glibc on the same system, it
  197. is necessary to set this to something other than "ld.so" to avoid
  198. conflicts with glibc, which also uses "ld.so". This prevents both
  199. libraries from using the same /etc/ld.so.* files. If you wish to
  200. support both uClibc and glibc on the same system then you should set
  201. this to "ld-uClibc.so".
  202. Most people will leave this set to the default of "ld.so".
  203. WARNING: Changing the default prefix could cause problems with
  204. binutils' ld !
  205. config LDSO_RUNPATH
  206. bool "Enable ELF RUNPATH tag support"
  207. depends on BUILD_UCLIBC_LDSO
  208. default y
  209. help
  210. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  211. which extend the library search paths. They are really only useful
  212. if a package installs libraries in non standard locations and
  213. ld.so.conf support is disabled.
  214. Usage of RUNPATH tags is not too common, so disabling this feature
  215. should be safe for most people.
  216. config UCLIBC_CTOR_DTOR
  217. bool "Support global constructors and destructors"
  218. default y
  219. help
  220. If you wish to build uClibc with support for global constructor
  221. (ctor) and global destructor (dtor) support, then answer Y here.
  222. When ctor/dtor support is enabled, binaries linked with uClibc must
  223. also be linked with crtbegin.o and crtend.o which are provided by gcc
  224. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  225. may need to be adjusted to include these files). This support will
  226. also add a small amount of additional size to each binary compiled vs
  227. uClibc. If you will be using uClibc with C++, or if you need the gcc
  228. __attribute__((constructor)) and __attribute__((destructor)) to work,
  229. then you definitely want to answer Y here. If you don't need ctors
  230. or dtors and want your binaries to be as small as possible, then
  231. answer N.
  232. config HAS_NO_THREADS
  233. bool
  234. default n
  235. config UCLIBC_HAS_THREADS
  236. bool "POSIX Threading Support"
  237. depends on !HAS_NO_THREADS
  238. default y
  239. help
  240. If you want to compile uClibc with pthread support, then answer Y.
  241. This will increase the size of uClibc by adding a bunch of locking
  242. to critical data structures, and adding extra code to ensure that
  243. functions are properly reentrant.
  244. If your applications require pthreads, answer Y.
  245. config PTHREADS_DEBUG_SUPPORT
  246. bool "Build pthreads debugging support"
  247. default n
  248. depends on UCLIBC_HAS_THREADS
  249. help
  250. Say Y here if you wish to be able to debug applications that use
  251. uClibc's pthreads library. By enabling this option, a library
  252. named libthread_db will be built. This library will be dlopen()'d
  253. by gdb and will allow gdb to debug the threads in your application.
  254. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  255. you must compile gdb with uClibc in order for pthread debugging to
  256. work properly.
  257. If you are doing development and want to debug applications using
  258. uClibc's pthread library, answer Y. Otherwise, answer N.
  259. config UCLIBC_HAS_LFS
  260. bool "Large File Support"
  261. default y
  262. help
  263. If you wish to build uClibc with support for accessing large files
  264. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  265. if you are using an older Linux kernel (2.0.x) that lacks large file
  266. support. Enabling this option will increase the size of uClibc.
  267. config UCLIBC_STATIC_LDCONFIG
  268. bool "Link ldconfig statically"
  269. default y
  270. help
  271. Enable this option to statically link the ldconfig binary.
  272. Making ldconfig static can be beneficial if you have a library
  273. problem and need to use ldconfig to recover. Sometimes, it is
  274. preferable to instead keep the size of the system down, in which
  275. case you should disable this option.
  276. choice
  277. prompt "Malloc Implementation"
  278. default MALLOC if ! ARCH_HAS_MMU
  279. default MALLOC_STANDARD if ARCH_HAS_MMU
  280. help
  281. "malloc" use mmap for all allocations and so works very well on MMU-less
  282. systems that do not support the brk() system call. It is pretty smart
  283. about reusing already allocated memory, and minimizing memory wastage.
  284. This is the default for uClinux MMU-less systems.
  285. "malloc-simple" was written from scratch for uClibc, and is the
  286. simplest possible (and therefore smallest) malloc implementation.
  287. This uses only the mmap() system call to allocation memory, and does
  288. not use the brk() system call at all, making it a fine choice for
  289. MMU-less systems with very limited memory. It is rather dumb, and
  290. certainly isn't the fastest. But it is 100% standards compliant,
  291. thread safe, and very small.
  292. "malloc-standard" is derived from the public domain dlmalloc
  293. implementation by Doug Lea. It is quite fast, and is pretty smart
  294. about reusing already allocated memory, and minimizing memory
  295. wastage. This uses brk() for small allocations, while using mmap()
  296. for larger allocations. This is the default malloc implementation
  297. for uClibc.
  298. If unsure, answer "malloc-standard".
  299. config MALLOC
  300. bool "malloc"
  301. config MALLOC_SIMPLE
  302. bool "malloc-simple"
  303. config MALLOC_STANDARD
  304. bool "malloc-standard"
  305. depends on ARCH_HAS_MMU
  306. endchoice
  307. config MALLOC_GLIBC_COMPAT
  308. bool "Malloc returns live pointer for malloc(0)"
  309. default n
  310. help
  311. The behavior of malloc(0) is listed as implementation-defined by
  312. SuSv3. Glibc returns a valid pointer to something, while uClibc
  313. normally return a NULL. I personally feel glibc's behavior is
  314. not particularly safe, and allows buggy applications to hide very
  315. serious problems.
  316. When this option is enabled, uClibc will act just like glibc, and
  317. return a live pointer when someone calls malloc(0). This pointer
  318. provides a malloc'ed area with a size of 1 byte. This feature is
  319. mostly useful when dealing with applications using autoconf's broken
  320. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  321. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  322. behavior). Most people can safely answer N.
  323. config UCLIBC_DYNAMIC_ATEXIT
  324. bool "Dynamic atexit() Support"
  325. default y
  326. help
  327. When this option is enabled, uClibc will support an infinite number,
  328. of atexit() and on_exit() functions, limited only by your available
  329. memory. This can be important when uClibc is used with C++, since
  330. global destructors are implemented via atexit(), and it is quite
  331. possible to exceed the default number when this option is disabled.
  332. Enabling this option adds a few bytes, and more significantly makes
  333. atexit and on_exit depend on malloc, which can be bad when compiling
  334. static executables.
  335. Unless you use uClibc with C++, you should probably answer N.
  336. config HAS_SHADOW
  337. bool "Shadow Password Support"
  338. default y
  339. help
  340. Answer N if you do not need shadow password support.
  341. Most people will answer Y.
  342. config UNIX98PTY_ONLY
  343. bool "Support only Unix 98 PTYs"
  344. default y
  345. help
  346. If you want to support only Unix 98 PTYs enable this. Some older
  347. applications may need this disabled. For most current programs,
  348. you can generally answer Y.
  349. config ASSUME_DEVPTS
  350. bool "Assume that /dev/pts is a devpts or devfs file system"
  351. default y
  352. help
  353. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  354. these filesystems automatically manage permissions on the /dev/pts
  355. devices. You may need to mount your devpts or devfs filesystem on
  356. /dev/pts for this to work.
  357. Most people should answer Y.
  358. config UCLIBC_HAS_TM_EXTENSIONS
  359. bool "Support 'struct tm' timezone extension fields"
  360. default y
  361. help
  362. Enabling this option adds fields to 'struct tm' in time.h for
  363. tracking the number of seconds east of UTC, and an abbreviation for
  364. the current timezone. These fields are not specified by the SuSv3
  365. standard, but they are commonly used in both GNU and BSD application
  366. code.
  367. To strictly follow the SuSv3 standard, leave this disabled.
  368. Most people will probably want to answer Y.
  369. config UCLIBC_HAS_TZ_CACHING
  370. bool "Enable caching of the last valid timezone 'TZ' string"
  371. default y
  372. help
  373. Answer Y to enable caching of the last valid 'TZ' string describing
  374. the timezone setting. This allows a quick string compare to avoid
  375. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  376. Most people will answer Y.
  377. config UCLIBC_HAS_TZ_FILE
  378. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  379. default y
  380. help
  381. Answer Y to enable the setting of a default timezone for uClibc.
  382. Ordinarily, uClibc gets the timezone information exclusively from the
  383. 'TZ' environment variable. In particular, there is no support for
  384. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  385. With this option enabled, uClibc will use the value stored in the
  386. file '/etc/TZ' (default path) to obtain timezone information if the
  387. 'TZ' environment variable is missing or has an invalid value. The
  388. file consists of a single line (newline required) of text describing
  389. the timezone in the format specified for the TZ environment variable.
  390. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  391. See
  392. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  393. for details on valid settings of 'TZ'.
  394. Most people will answer Y.
  395. config UCLIBC_HAS_TZ_FILE_READ_MANY
  396. bool "Repeatedly read the '/etc/TZ' file"
  397. depends on UCLIBC_HAS_TZ_FILE
  398. default y
  399. help
  400. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  401. a valid value has been read. This incurs the overhead of an open/read/close
  402. for each tzset() call (explicit or implied). However, setting this
  403. will allows applications to update their timezone information if the contents
  404. of the file change.
  405. Most people will answer Y.
  406. config UCLIBC_TZ_FILE_PATH
  407. string "Path to the 'TZ' file for setting the global timezone"
  408. depends on UCLIBC_HAS_TZ_FILE
  409. default "/etc/TZ"
  410. help
  411. This is the path to the 'TZ' file.
  412. Most people will use the default of '/etc/TZ'.
  413. endmenu
  414. menu "Networking Support"
  415. config UCLIBC_HAS_IPV6
  416. bool "IP version 6 Support"
  417. default n
  418. help
  419. If you want to include support for the next version of the Internet
  420. Protocol (IP version 6) then answer Y.
  421. Most people should answer N.
  422. config UCLIBC_HAS_RPC
  423. bool "Remote Procedure Call (RPC) support"
  424. default n
  425. help
  426. If you want to include RPC support, enable this. RPC is rarely used
  427. for anything except for the NFS filesystem. Unless you plan to use NFS,
  428. you can probably leave this set to N and save some space. If you need
  429. to use NFS then you should answer Y.
  430. config UCLIBC_HAS_FULL_RPC
  431. bool "Full RPC support"
  432. depends on UCLIBC_HAS_RPC
  433. default y if !HAVE_SHARED
  434. help
  435. Normally we enable just enough RPC support for things like rshd and
  436. nfs mounts to work. If you find you need the rest of the RPC stuff,
  437. then enable this option. Most people can safely answer N.
  438. config UCLIBC_HAS_REENTRANT_RPC
  439. bool "Reentrant RPC support"
  440. depends on UCLIBC_HAS_RPC
  441. default y if !HAVE_SHARED
  442. help
  443. Most packages utilize the normal (non-reentrant) RPC functions, but
  444. some (like exportfs from nfs-utils) need these reentrant versions.
  445. Most people can safely answer N.
  446. endmenu
  447. menu "String and Stdio Support"
  448. config UCLIBC_HAS_STRING_GENERIC_OPT
  449. bool "Use glibc generic string functions"
  450. default y
  451. help
  452. Answer Y to use the (tweaked) glibc generic string functions.
  453. In general, they are faster (but 3-5K larger) than the base
  454. uClibc string functions which are optimized solely for size.
  455. Many people will answer Y.
  456. config UCLIBC_HAS_STRING_ARCH_OPT
  457. bool "Use arch-specific string functions"
  458. default y
  459. help
  460. Answer Y to use the arch-specific string functions instead of the
  461. base uClibc versions, which are optimized exclusively for size.
  462. Most people will answer Y, as this has been default behavior
  463. for some time.
  464. config UCLIBC_HAS_CTYPE_TABLES
  465. bool "Use Table Versions Of 'ctype.h' Functions."
  466. default y
  467. help
  468. Answer Y to use table versions of the 'ctype.h' functions.
  469. While the non-table versions are often smaller when building
  470. staticly linked apps, they work only in stub locale mode.
  471. Most people will answer Y.
  472. config UCLIBC_HAS_CTYPE_SIGNED
  473. bool "Support Signed Characters In 'ctype.h' Functions."
  474. depends UCLIBC_HAS_CTYPE_TABLES
  475. default y
  476. help
  477. Answer Y to enable support for passing signed char values to
  478. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  479. these functions are only defined for unsigned char values and
  480. EOF. However, glibc allows negative signed char values as well
  481. in order to support 'broken old programs'.
  482. Most people will answer Y.
  483. choice
  484. prompt "ctype argument checking"
  485. depends UCLIBC_HAS_CTYPE_TABLES
  486. default UCLIBC_HAS_CTYPE_UNSAFE
  487. help
  488. Please select the invalid arg behavior you want for the 'ctype' functions.
  489. The 'ctype' functions are now implemented using table lookups, with
  490. the arg being the index. This can result in incorrect memory accesses
  491. or even segfaults for args outside of the allowed range.
  492. NOTE: This only affects the 'ctype' _functions_. It does not affect
  493. the macro implementations.
  494. config UCLIBC_HAS_CTYPE_UNSAFE
  495. bool "Do not check -- unsafe"
  496. config UCLIBC_HAS_CTYPE_CHECKED
  497. bool "Detect and handle appropriately"
  498. config UCLIBC_HAS_CTYPE_ENFORCED
  499. bool "Issue a diagnostic and abort()"
  500. endchoice
  501. config UCLIBC_HAS_WCHAR
  502. bool "Wide Character Support"
  503. default n
  504. help
  505. Answer Y to enable wide character support. This will make uClibc
  506. much larger. It is also currently required for locale support.
  507. Most people will answer N.
  508. config UCLIBC_HAS_LOCALE
  509. bool "Locale Support"
  510. select UCLIBC_HAS_WCHAR
  511. select UCLIBC_HAS_CTYPE_TABLES
  512. default n
  513. help
  514. uClibc now has full ANSI/ISO C99 locale support (except for
  515. wcsftime() and collating items in regex). Be aware that enabling
  516. this option will make uClibc much larger.
  517. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  518. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  519. uClibc by around 300k. You can reduce this size by building your own
  520. custom set of locate data (see extra/locale/LOCALES for details).
  521. uClibc's locale support is still under development. For example,
  522. codesets using shift states are not currently supported. Support is
  523. planned in the next iteration of locale support.
  524. Answer Y to enable locale support. Most people will answer N.
  525. config UCLIBC_PREGENERATED_LOCALE_DATA
  526. bool "Use Pre-generated Locale Data"
  527. depends on UCLIBC_HAS_LOCALE
  528. default n
  529. help
  530. If you are selective and only want locale data for a few particular
  531. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  532. person, you can turn this option off and manually walk through the
  533. mostly undocumented procedure needed to generate your own locale
  534. data.
  535. Mere mortals will answer Y and use the default set of pregenerated
  536. locale data, which supports 169 UTF-8 locales, and 144 locales for
  537. other codesets (for the complete list see extra/locale/LOCALES).
  538. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  539. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  540. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  541. default n
  542. help
  543. If you would like the build process to use 'wget' to automatically
  544. download the pregenerated locale data, enable this option. Otherwise
  545. you will need to obtain the locale data yourself from:
  546. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  547. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  548. directory.
  549. Go ahead and make life easy for yourself... Answer Y.
  550. config UCLIBC_HAS_XLOCALE
  551. bool "Extended Locale Support (experimental/incomplete)"
  552. depends on UCLIBC_HAS_LOCALE
  553. default n
  554. help
  555. Answer Y to enable extended locale support similar to that provided
  556. by glibc. This is primarily intended to support libstd++ functionality.
  557. However, it also allows thread-specific locale selection via uselocale().
  558. Most people will answer N.
  559. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  560. bool "Support hexadecimal float notation"
  561. depends UCLIBC_HAS_CTYPE_TABLES
  562. depends on UCLIBC_HAS_FLOATS
  563. default n
  564. help
  565. Answer Y to enable support for hexadecimal float notation in the
  566. (wchar and) char string to floating point conversion functions, as
  567. well as support for the %a and %A conversion specifiers in the
  568. *printf() and *scanf() functions.
  569. Most people will answer N.
  570. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  571. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  572. depends on UCLIBC_HAS_LOCALE
  573. depends on UCLIBC_HAS_FLOATS
  574. default n
  575. help
  576. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  577. digit grouping in base 10 integer conversions and appropriate floating point
  578. conversions in the *printf() and *scanf() functions.
  579. Most people will answer N.
  580. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  581. bool "Do not require digit grouping when the \"'\" flag is specified"
  582. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  583. default y
  584. help
  585. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  586. This is the standard glibc behavior. If the initial string of digits
  587. exceeds the maximum group number, the input will be treated as a normal
  588. non-grouped number.
  589. Most people will answer N.
  590. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  591. bool "Support glibc's register_printf_function() (glibc-compat)"
  592. depends on !USE_OLD_VFPRINTF
  593. default n
  594. help
  595. Answer Y to support glibc's register_printf_function() to allow an
  596. application to add its own printf conversion specifiers.
  597. NOTE: This implementation limits the number or registered specifiers to 10.
  598. NOTE: This implementation requires new conversion specifiers to be ASCII
  599. characters (0-0x7f). This is to avoid problems with processing
  600. format strings in locales with different multibyte conversions.
  601. Most people will answer N.
  602. config USE_OLD_VFPRINTF
  603. bool "Use the old vfprintf implementation"
  604. depends on !UCLIBC_HAS_WCHAR
  605. default n
  606. help
  607. Set to true to use the old vfprintf instead of the new. This is roughly
  608. C89 compliant with some extensions, and is much smaller. However, it does
  609. not support wide chars, positional args, or glibc custom printf specifiers.
  610. Most people will answer N.
  611. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  612. int "Maximum number of positional args. Either 0 or >= 9."
  613. depends on !USE_OLD_VFPRINTF
  614. default 9
  615. help
  616. Set the maximum number of positional args supported by the printf/scanf
  617. functions. The Single Unix Specification Version 3 requires a minimum
  618. value of 9. Setting this to a value lower than 9 will disable positional
  619. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  620. WARNING! The workspace to support positional args is currently allocated
  621. on the stack. You probably don't want to set this to too high a value.
  622. Most people will answer 9.
  623. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  624. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  625. default n
  626. help
  627. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  628. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  629. Answer Y to enable support for glibc's 'a' flag for the scanf string
  630. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  631. auto-allocate sufficient memory to hold the data retrieved.
  632. Most people will answer N.
  633. choice
  634. prompt "Stdio buffer size"
  635. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  636. help
  637. Please select a value for BUFSIZ. This will be used by the
  638. stdio subsystem as the default buffer size for a file, and
  639. affects fopen(), setvbuf(), etc.
  640. NOTE: Setting this to 'none' will disable buffering completely.
  641. However, BUFSIZ will still be defined in stdio.h as 256 because
  642. many applications use this value.
  643. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  644. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  645. depends !UCLIBC_HAS_WCHAR
  646. config UCLIBC_HAS_STDIO_BUFSIZ_256
  647. bool "256 (minimum ANSI/ISO C99 value)"
  648. config UCLIBC_HAS_STDIO_BUFSIZ_512
  649. bool "512"
  650. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  651. bool "1024"
  652. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  653. bool "2048"
  654. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  655. bool "4096"
  656. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  657. bool "8192"
  658. # If you add more choices, you will need to update uClibc_stdio.h.
  659. endchoice
  660. choice
  661. prompt "Stdio builtin buffer size (uClibc-specific)"
  662. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  663. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  664. help
  665. When a FILE is created with fopen(), an attempt is made to allocate
  666. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  667. succeed but the FILE will be unbuffered.
  668. This option adds a small amount of space to each FILE to act as an
  669. emergency buffer in the event of a buffer allocation failure.
  670. Most people will answer None.
  671. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  672. bool "None"
  673. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  674. bool "4"
  675. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  676. bool "8"
  677. # If you add more choices, you will need to update uClibc_stdio.h.
  678. endchoice
  679. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  680. bool "Attemt to shutdown stdio subsystem when abort() is called."
  681. default n
  682. help
  683. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  684. change made in SUSv3. Previously, abort() was required to have the affect of
  685. fclose() on all open streams. The wording has been changed to "may" from "shall".
  686. Most people will answer N.
  687. config UCLIBC_HAS_STDIO_GETC_MACRO
  688. bool "Provide a macro version of getc()"
  689. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  690. default y
  691. help
  692. Provide a macro version of getc().
  693. Most people will answer Y.
  694. config UCLIBC_HAS_STDIO_PUTC_MACRO
  695. bool "Provide a macro version of putc()"
  696. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  697. default y
  698. help
  699. Provide a macro version of putc().
  700. Most people will answer Y.
  701. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  702. bool "Support auto-r/w transition"
  703. default y
  704. help
  705. Answer Y to enable the stdio subsystem to automaticly transition
  706. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  707. When a file is opened with update mode ('+' as the second or third character
  708. in the list of mode argument values), both input and output may be performed
  709. on the associated stream. However, output shall not be directly followed by
  710. input without an intervening call to the fflush function or to a file
  711. positioning function (fseek, fsetpos, or rewind), and input shall not be
  712. directly followed by output without an intervening call to a file positioning
  713. function, unless the input operation encounters end­of­file.
  714. Most people will answer Y.
  715. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  716. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  717. depends on UCLIBC_HAS_LFS
  718. default n
  719. help
  720. Answer Y to enable a uClibc-specific extension to allow passing an
  721. additional 'F' flag in the mode string for fopen() to specify that
  722. the file should be open()ed with the O_LARGEFILE flag set.
  723. Most people will answer N.
  724. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  725. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  726. default n
  727. help
  728. Answer Y to support a glibc extension to allow passing
  729. additional 'x' flag in the mode string for fopen() to specify that
  730. the file should be open()ed with the O_EXCL flag set.
  731. Most people will answer N.
  732. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  733. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  734. default n
  735. help
  736. Answer Y to support the glibc 'custom stream' extension functions
  737. fmemopen(), open_memstream(), and fopencookie().
  738. NOTE: There are some minor differences regarding seeking behavior.
  739. Most people will answer N.
  740. config UCLIBC_HAS_PRINTF_M_SPEC
  741. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  742. default n
  743. help
  744. Answer Y to support a glibc extension to interpret '%m' in printf
  745. format strings as an instruction to output the error message string
  746. (as generated by strerror) corresponding to the current value of 'errno'.
  747. Most people will answer N.
  748. config UCLIBC_HAS_ERRNO_MESSAGES
  749. bool "Include the errno message text in the library"
  750. default y
  751. help
  752. Answer Y if you want to include the errno message text in the
  753. library. This adds about 3K to the library, but enables strerror()
  754. to generate text other than 'Unknown error <number>'.
  755. Most people will answer Y.
  756. config UCLIBC_HAS_SYS_ERRLIST
  757. bool "Support sys_errlist[] (obsolete-compat)"
  758. depends on UCLIBC_HAS_ERRNO_MESSAGES
  759. default n
  760. help
  761. Answer Y if you want to support the obsolete sys_errlist[].
  762. This adds about 0.5k to the library, except for the mips
  763. arch where it adds over 4K.
  764. WARNING! In the future, support for sys_errlist[] may be unavailable
  765. in at least some configurations. In fact, it may be removed altogether.
  766. Most people will answer N.
  767. config UCLIBC_HAS_SIGNUM_MESSAGES
  768. bool "Include the signum message text in the library"
  769. default y
  770. help
  771. Answer Y if you want to include the signum message text in the
  772. library. This adds about 0.5K to the library, but enables strsignal()
  773. to generate text other than 'Unknown signal <number>'.
  774. Most people will answer Y.
  775. config UCLIBC_HAS_SYS_SIGLIST
  776. bool "Support sys_siglist[] (bsd-compat)"
  777. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  778. default n
  779. help
  780. Answer Y if you want to support sys_siglist[].
  781. WARNING! In the future, support for sys_siglist[] may be unavailable
  782. in at least some configurations. In fact, it may be removed altogether.
  783. Most people will answer N.
  784. config UCLIBC_HAS_GETTEXT_AWARENESS
  785. bool "Include gettext awareness"
  786. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  787. default n
  788. help
  789. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  790. Answer Y if you want to include weak stub gettext support and
  791. make the *strerror*() and strsignal() functions gettext-aware.
  792. Currently, to get functional gettext functionality you will need
  793. to use gnu gettext.
  794. Most people will answer N.
  795. config UCLIBC_HAS_GNU_GETOPT
  796. bool "Support gnu getopt"
  797. default y
  798. help
  799. Answer Y if you want to include full gnu getopt() instead of a
  800. (much smaller) SUSv3 compatible getopt().
  801. Most people will answer Y.
  802. endmenu
  803. menu "Big and Tall"
  804. config UCLIBC_HAS_REGEX
  805. bool "Regular Expression Support"
  806. default y
  807. help
  808. POSIX regular expression code is really big -- 27k all by itself.
  809. If you don't use regular expressions, turn this off and save space.
  810. Of course, if you only staticly link, leave this on, since it will
  811. only be included in your apps if you use regular expressions.
  812. config UCLIBC_HAS_WORDEXP
  813. bool "Support the wordexp() interface"
  814. default n
  815. help
  816. The SuSv3 wordexp() interface performs word expansions per the Shell
  817. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  818. intended for use by applications that want to implement all of the
  819. standard Bourne shell expansions on input data.
  820. This interface is rarely used, and very large. Unless you have a
  821. pressing need for wordexp(), you should probably answer N.
  822. config UCLIBC_HAS_FTW
  823. bool "Support the ftw() and nftw() interfaces"
  824. default n
  825. help
  826. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  827. directory paths while repeatedly calling a function.
  828. This interface is rarely used, and adds around 4.5k. Unless you have
  829. a pressing need for ftw() or nftw(), you should probably answer N.
  830. config UCLIBC_HAS_GLOB
  831. bool "Support the glob() interface"
  832. default y
  833. help
  834. The glob interface is somewhat large (weighing in at about 4k). It
  835. is used fairly often, but is an option since people wanting to go for
  836. absolute minimum size may wish to omit it.
  837. Most people will answer Y.
  838. endmenu
  839. menu "Library Installation Options"
  840. config SHARED_LIB_LOADER_PREFIX
  841. string "Shared library loader path"
  842. depends on BUILD_UCLIBC_LDSO
  843. default "$(DEVEL_PREFIX)/lib"
  844. help
  845. When using shared libraries, this path is the location where the
  846. shared library will be invoked. This value will be compiled into
  847. every binary compiled with uClibc.
  848. For a typical target system this should be set to "/lib", such that
  849. 'make install' will install /lib/ld-uClibc.so.0.
  850. BIG FAT WARNING:
  851. If you do not have a shared library loader with the correct name
  852. sitting in the directory this points to, your binaries will not
  853. run.
  854. config RUNTIME_PREFIX
  855. string "uClibc runtime library directory"
  856. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  857. help
  858. RUNTIME_PREFIX is the directory into which the uClibc runtime
  859. libraries will be installed. The result will look something
  860. like the following:
  861. $(RUNTIME_PREFIX)/
  862. lib/ <contains all runtime libraries>
  863. usr/bin/ldd <the ldd utility program>
  864. sbin/ldconfig <the ldconfig utility program>
  865. This value is used by the 'make install' Makefile target. Since this
  866. directory is compiled into the shared library loader, you will need to
  867. recompile uClibc if you change this value...
  868. For a typical target system this should be set to "/", such that
  869. 'make install' will install /lib/libuClibc-<VERSION>.so
  870. config DEVEL_PREFIX
  871. string "uClibc development environment directory"
  872. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  873. help
  874. DEVEL_PREFIX is the directory into which the uClibc development
  875. environment will be installed. The result will look something
  876. like the following:
  877. $(DEVEL_PREFIX)/
  878. lib/ <contains static libs>
  879. include/ <Where all the header files go>
  880. This value is used by the 'make install' Makefile target when
  881. installing a uClibc development environment.
  882. For a typical target system this should be set to "/usr", such that
  883. 'make install' will install /usr/include/<header files>.
  884. endmenu
  885. menu "uClibc security related options"
  886. config UCLIBC_SECURITY
  887. bool "Enable security options"
  888. default n
  889. config UCLIBC_BUILD_PIE
  890. bool "Build utilities as ET_DYN/PIE executables"
  891. depends on UCLIBC_SECURITY
  892. depends on HAVE_SHARED
  893. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  894. select FORCE_SHAREABLE_TEXT_SEGMENTS if BUILD_UCLIBC_LDSO
  895. default y
  896. help
  897. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  898. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  899. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  900. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  901. libraries have to be built with -fPIC or -fpic, and all assembler
  902. functions must be written as position independent code (PIC).
  903. config UCLIBC_HAS_SSP
  904. bool "Support for propolice smashing stack protector"
  905. depends on UCLIBC_SECURITY
  906. default n
  907. help
  908. Add propolice smashing stack protector to the library.
  909. This requires a patched version of GCC, supporting the
  910. -fstack-protector[-all] options, with the __guard and
  911. __stack_smash_handler functions removed from libgcc.
  912. These functions are added to libc instead.
  913. More information at:
  914. <http://www.research.ibm.com/trl/projects/security/ssp/>
  915. Most people will answer N.
  916. config SSP_QUICK_CANARY
  917. bool "Use simple guard values without accessing /dev/urandom"
  918. depends on UCLIBC_HAS_SSP
  919. default n
  920. help
  921. Use gettimeofday(2) to define the __guard without accessing
  922. /dev/urandom.
  923. WARNING: This makes smashing stack protector vulnerable to timing
  924. attacks.
  925. Most people will answer N.
  926. config SSP_USE_ERANDOM
  927. bool "Use erandom for setting guard value if /dev/urandom fails"
  928. depends on UCLIBC_HAS_SSP && !SSP_QUICK_CANARY
  929. default n
  930. help
  931. Use /dev/erandom to define the guard if /dev/urandom fails (chroot).
  932. This requires a modified kernel.
  933. More information at:
  934. <http://frandom.sourceforge.net/>
  935. Most people will answer N.
  936. choice
  937. prompt "Propolice protection blocking signal"
  938. depends on UCLIBC_HAS_SSP
  939. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  940. default PROPOLICE_BLOCK_SEGV if DODEBUG
  941. help
  942. "abort" use SIGABRT to block offending programs.
  943. This is the default implementation.
  944. "segfault" use SIGSEGV to block offending programs.
  945. Use this for debugging.
  946. If unsure, answer "abort".
  947. config PROPOLICE_BLOCK_ABRT
  948. bool "abort"
  949. config PROPOLICE_BLOCK_SEGV
  950. bool "segfault"
  951. endchoice
  952. config UCLIBC_BUILD_SSP
  953. bool "Build uClibc with propolice protection"
  954. depends on UCLIBC_HAS_SSP
  955. default n
  956. help
  957. Build all libraries and executables with propolice protection enabled.
  958. config UCLIBC_BUILD_RELRO
  959. bool "Build uClibc with RELRO"
  960. depends on UCLIBC_SECURITY
  961. depends on BUILD_UCLIBC_LDSO
  962. default y
  963. help
  964. Build all libraries and executables with -z relro.
  965. config UCLIBC_BUILD_NOW
  966. bool "Build uClibc with NOW"
  967. depends on UCLIBC_SECURITY
  968. depends on BUILD_UCLIBC_LDSO
  969. default y
  970. help
  971. Build all libraries and executables with -z now.
  972. config UCLIBC_BUILD_NOEXECSTACK
  973. bool "Build uClibc with noexecstack marking"
  974. depends on UCLIBC_SECURITY
  975. default y
  976. help
  977. Mark all assembler files as noexecstack. This will result in marking
  978. all libraries and executables built against uClibc not requiring
  979. executable stack.
  980. endmenu
  981. menu "uClibc development/debugging options"
  982. config CROSS_COMPILER_PREFIX
  983. string "Cross-compiling toolchain prefix"
  984. default ""
  985. help
  986. The prefix used to execute your cross-compiling toolchain. For
  987. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  988. then enter 'arm-linux-uclibc-' here.
  989. config DODEBUG
  990. bool "Build uClibc with debugging symbols"
  991. select PTHREADS_DEBUG_SUPPORT if UCLIBC_HAS_THREADS
  992. default n
  993. help
  994. Say Y here if you wish to compile uClibc with debugging symbols.
  995. This will allow you to use a debugger to examine uClibc internals
  996. while applications are running. This increases the size of the
  997. library considerably and should only be used when doing development.
  998. If you are doing development and want to debug uClibc, answer Y.
  999. Otherwise, answer N.
  1000. config DODEBUG_PT
  1001. bool "Build pthread with debugging output"
  1002. depends on UCLIBC_HAS_THREADS
  1003. default n
  1004. help
  1005. Enable debug output in libpthread. This is only useful when doing
  1006. development in libpthread itself.
  1007. Otherwise, answer N.
  1008. config DOASSERTS
  1009. bool "Build uClibc with run-time assertion testing"
  1010. default n
  1011. help
  1012. Say Y here to include runtime assertion tests.
  1013. This enables runtime assertion testing in some code, which can
  1014. increase the size of the library and incur runtime overhead.
  1015. If you say N, then this testing will be disabled.
  1016. config SUPPORT_LD_DEBUG
  1017. bool "Build the shared library loader with debugging support"
  1018. depends on BUILD_UCLIBC_LDSO
  1019. default n
  1020. help
  1021. Answer Y here to enable all the extra code needed to debug the uClibc
  1022. native shared library loader. The level of debugging noise that is
  1023. generated depends on the LD_DEBUG environment variable... Just set
  1024. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1025. debug your application. Diagnostic messages will then be printed to
  1026. the stderr.
  1027. For now these debugging tokens are available:
  1028. detail provide more information for some options
  1029. move display copy processing
  1030. symbols display symbol table processing
  1031. reloc display relocation processing; detail shows the relocation patch
  1032. nofixups never fixes up jump relocations
  1033. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1034. all Enable everything!
  1035. The additional environment variable:
  1036. LD_DEBUG_OUTPUT=file
  1037. redirects the diagnostics to an output file created using
  1038. the specified name and the process id as a suffix.
  1039. An excellent start is simply:
  1040. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1041. or to log everything to a file named 'logfile', try this
  1042. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1043. If you are doing development and want to debug uClibc's shared library
  1044. loader, answer Y. Mere mortals answer N.
  1045. config SUPPORT_LD_DEBUG_EARLY
  1046. bool "Build the shared library loader with early debugging support"
  1047. depends on BUILD_UCLIBC_LDSO
  1048. default n
  1049. help
  1050. Answer Y here to if you find the uClibc shared library loader is
  1051. crashing or otherwise not working very early on. This is typical
  1052. only when starting a new port when you haven't figured out how to
  1053. properly get the values for argc, argv, environ, etc. This method
  1054. allows a degree of visibility into the very early shared library
  1055. loader initialization process. If you are doing development and want
  1056. to debug the uClibc shared library loader early initialization,
  1057. answer Y. Mere mortals answer N.
  1058. config UCLIBC_MALLOC_DEBUGGING
  1059. bool "Build malloc with debugging support"
  1060. depends MALLOC
  1061. default n
  1062. help
  1063. Answer Y here to compile extra debugging support code into malloc.
  1064. Malloc debugging output may then be enabled at runtime using the
  1065. MALLOC_DEBUG environment variable.
  1066. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1067. a bitmask with the following bits:
  1068. 1 - do extra consistency checking
  1069. 2 - output messages for malloc/free calls and OS allocation calls
  1070. 4 - output messages for the `MMB' layer
  1071. 8 - output messages for internal malloc heap manipulation calls
  1072. Because this increases the size of malloc appreciably (due to strings
  1073. etc), you should say N unless you need to debug a malloc problem.
  1074. config WARNINGS
  1075. string "Compiler Warnings"
  1076. default "-Wall"
  1077. help
  1078. Set this to the set of gcc warnings you wish to see while compiling.
  1079. config UCLIBC_MJN3_ONLY
  1080. bool "Manuel's hidden warnings"
  1081. default n
  1082. help
  1083. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1084. Most people will answer N.
  1085. endmenu