Config.in 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353
  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). 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 make 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 COMPAT_ATEXIT
  337. bool "Old (visible) atexit Support"
  338. default n
  339. help
  340. Enable this option if you want to update from 0.9.28 to svn/0.9.29, else
  341. you will be missing atexit() until you rebuild all apps.
  342. config HAS_SHADOW
  343. bool "Shadow Password Support"
  344. default y
  345. help
  346. Answer N if you do not need shadow password support.
  347. Most people will answer Y.
  348. config UNIX98PTY_ONLY
  349. bool "Support only Unix 98 PTYs"
  350. default y
  351. help
  352. If you want to support only Unix 98 PTYs enable this. Some older
  353. applications may need this disabled. For most current programs,
  354. you can generally answer Y.
  355. config ASSUME_DEVPTS
  356. bool "Assume that /dev/pts is a devpts or devfs file system"
  357. default y
  358. help
  359. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  360. these filesystems automatically manage permissions on the /dev/pts
  361. devices. You may need to mount your devpts or devfs filesystem on
  362. /dev/pts for this to work.
  363. Most people should answer Y.
  364. config UCLIBC_HAS_TM_EXTENSIONS
  365. bool "Support 'struct tm' timezone extension fields"
  366. default y
  367. help
  368. Enabling this option adds fields to 'struct tm' in time.h for
  369. tracking the number of seconds east of UTC, and an abbreviation for
  370. the current timezone. These fields are not specified by the SuSv3
  371. standard, but they are commonly used in both GNU and BSD application
  372. code.
  373. To strictly follow the SuSv3 standard, leave this disabled.
  374. Most people will probably want to answer Y.
  375. config UCLIBC_HAS_TZ_CACHING
  376. bool "Enable caching of the last valid timezone 'TZ' string"
  377. default y
  378. help
  379. Answer Y to enable caching of the last valid 'TZ' string describing
  380. the timezone setting. This allows a quick string compare to avoid
  381. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  382. Most people will answer Y.
  383. config UCLIBC_HAS_TZ_FILE
  384. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  385. default y
  386. help
  387. Answer Y to enable the setting of a default timezone for uClibc.
  388. Ordinarily, uClibc gets the timezone information exclusively from the
  389. 'TZ' environment variable. In particular, there is no support for
  390. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  391. With this option enabled, uClibc will use the value stored in the
  392. file '/etc/TZ' (default path) to obtain timezone information if the
  393. 'TZ' environment variable is missing or has an invalid value. The
  394. file consists of a single line (newline required) of text describing
  395. the timezone in the format specified for the TZ environment variable.
  396. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  397. See
  398. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  399. for details on valid settings of 'TZ'.
  400. Most people will answer Y.
  401. config UCLIBC_HAS_TZ_FILE_READ_MANY
  402. bool "Repeatedly read the '/etc/TZ' file"
  403. depends on UCLIBC_HAS_TZ_FILE
  404. default y
  405. help
  406. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  407. a valid value has been read. This incurs the overhead of an open/read/close
  408. for each tzset() call (explicit or implied). However, setting this
  409. will allows applications to update their timezone information if the contents
  410. of the file change.
  411. Most people will answer Y.
  412. config UCLIBC_TZ_FILE_PATH
  413. string "Path to the 'TZ' file for setting the global timezone"
  414. depends on UCLIBC_HAS_TZ_FILE
  415. default "/etc/TZ"
  416. help
  417. This is the path to the 'TZ' file.
  418. Most people will use the default of '/etc/TZ'.
  419. endmenu
  420. menu "Networking Support"
  421. config UCLIBC_HAS_IPV6
  422. bool "IP version 6 Support"
  423. default n
  424. help
  425. If you want to include support for the next version of the Internet
  426. Protocol (IP version 6) then answer Y.
  427. Most people should answer N.
  428. config UCLIBC_HAS_RPC
  429. bool "Remote Procedure Call (RPC) support"
  430. default n
  431. help
  432. If you want to include RPC support, enable this. RPC is rarely used
  433. for anything except for the NFS filesystem. Unless you plan to use NFS,
  434. you can probably leave this set to N and save some space. If you need
  435. to use NFS then you should answer Y.
  436. config UCLIBC_HAS_FULL_RPC
  437. bool "Full RPC support"
  438. depends on UCLIBC_HAS_RPC
  439. default y if !HAVE_SHARED
  440. help
  441. Normally we enable just enough RPC support for things like rshd and
  442. nfs mounts to work. If you find you need the rest of the RPC stuff,
  443. then enable this option. Most people can safely answer N.
  444. config UCLIBC_HAS_REENTRANT_RPC
  445. bool "Reentrant RPC support"
  446. depends on UCLIBC_HAS_RPC
  447. default y if !HAVE_SHARED
  448. help
  449. Most packages utilize the normal (non-reentrant) RPC functions, but
  450. some (like exportfs from nfs-utils) need these reentrant versions.
  451. Most people can safely answer N.
  452. endmenu
  453. menu "String and Stdio Support"
  454. config UCLIBC_HAS_STRING_GENERIC_OPT
  455. bool "Use glibc generic string functions"
  456. default y
  457. help
  458. Answer Y to use the (tweaked) glibc generic string functions.
  459. In general, they are faster (but 3-5K larger) than the base
  460. uClibc string functions which are optimized solely for size.
  461. Many people will answer Y.
  462. config UCLIBC_HAS_STRING_ARCH_OPT
  463. bool "Use arch-specific string functions"
  464. default y
  465. help
  466. Answer Y to use the arch-specific string functions instead of the
  467. base uClibc versions, which are optimized exclusively for size.
  468. Most people will answer Y, as this has been default behavior
  469. for some time.
  470. config UCLIBC_HAS_CTYPE_TABLES
  471. bool "Use Table Versions Of 'ctype.h' Functions."
  472. default y
  473. help
  474. Answer Y to use table versions of the 'ctype.h' functions.
  475. While the non-table versions are often smaller when building
  476. staticly linked apps, they work only in stub locale mode.
  477. Most people will answer Y.
  478. config UCLIBC_HAS_CTYPE_SIGNED
  479. bool "Support Signed Characters In 'ctype.h' Functions."
  480. depends UCLIBC_HAS_CTYPE_TABLES
  481. default y
  482. help
  483. Answer Y to enable support for passing signed char values to
  484. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  485. these functions are only defined for unsigned char values and
  486. EOF. However, glibc allows negative signed char values as well
  487. in order to support 'broken old programs'.
  488. Most people will answer Y.
  489. choice
  490. prompt "ctype argument checking"
  491. depends UCLIBC_HAS_CTYPE_TABLES
  492. default UCLIBC_HAS_CTYPE_UNSAFE
  493. help
  494. Please select the invalid arg behavior you want for the 'ctype' functions.
  495. The 'ctype' functions are now implemented using table lookups, with
  496. the arg being the index. This can result in incorrect memory accesses
  497. or even segfaults for args outside of the allowed range.
  498. NOTE: This only affects the 'ctype' _functions_. It does not affect
  499. the macro implementations.
  500. config UCLIBC_HAS_CTYPE_UNSAFE
  501. bool "Do not check -- unsafe"
  502. config UCLIBC_HAS_CTYPE_CHECKED
  503. bool "Detect and handle appropriately"
  504. config UCLIBC_HAS_CTYPE_ENFORCED
  505. bool "Issue a diagnostic and abort()"
  506. endchoice
  507. config UCLIBC_HAS_WCHAR
  508. bool "Wide Character Support"
  509. default n
  510. help
  511. Answer Y to enable wide character support. This will make uClibc
  512. much larger. It is also currently required for locale support.
  513. Most people will answer N.
  514. config UCLIBC_HAS_LOCALE
  515. bool "Locale Support"
  516. select UCLIBC_HAS_WCHAR
  517. select UCLIBC_HAS_CTYPE_TABLES
  518. default n
  519. help
  520. uClibc now has full ANSI/ISO C99 locale support (except for
  521. wcsftime() and collating items in regex). Be aware that enabling
  522. this option will make uClibc much larger.
  523. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  524. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  525. uClibc by around 300k. You can reduce this size by building your own
  526. custom set of locate data (see extra/locale/LOCALES for details).
  527. uClibc's locale support is still under development. For example,
  528. codesets using shift states are not currently supported. Support is
  529. planned in the next iteration of locale support.
  530. Answer Y to enable locale support. Most people will answer N.
  531. config UCLIBC_PREGENERATED_LOCALE_DATA
  532. bool "Use Pre-generated Locale Data"
  533. depends on UCLIBC_HAS_LOCALE
  534. default n
  535. help
  536. If you are selective and only want locale data for a few particular
  537. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  538. person, you can turn this option off and manually walk through the
  539. mostly undocumented procedure needed to generate your own locale
  540. data.
  541. Mere mortals will answer Y and use the default set of pregenerated
  542. locale data, which supports 169 UTF-8 locales, and 144 locales for
  543. other codesets (for the complete list see extra/locale/LOCALES).
  544. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  545. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  546. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  547. default n
  548. help
  549. If you would like the build process to use 'wget' to automatically
  550. download the pregenerated locale data, enable this option. Otherwise
  551. you will need to obtain the locale data yourself from:
  552. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  553. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  554. directory.
  555. Go ahead and make life easy for yourself... Answer Y.
  556. config UCLIBC_HAS_XLOCALE
  557. bool "Extended Locale Support (experimental/incomplete)"
  558. depends on UCLIBC_HAS_LOCALE
  559. default n
  560. help
  561. Answer Y to enable extended locale support similar to that provided
  562. by glibc. This is primarily intended to support libstd++ functionality.
  563. However, it also allows thread-specific locale selection via uselocale().
  564. Most people will answer N.
  565. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  566. bool "Support hexadecimal float notation"
  567. depends UCLIBC_HAS_CTYPE_TABLES
  568. depends on UCLIBC_HAS_FLOATS
  569. default n
  570. help
  571. Answer Y to enable support for hexadecimal float notation in the
  572. (wchar and) char string to floating point conversion functions, as
  573. well as support for the %a and %A conversion specifiers in the
  574. *printf() and *scanf() functions.
  575. Most people will answer N.
  576. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  577. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  578. depends on UCLIBC_HAS_LOCALE
  579. depends on UCLIBC_HAS_FLOATS
  580. default n
  581. help
  582. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  583. digit grouping in base 10 integer conversions and appropriate floating point
  584. conversions in the *printf() and *scanf() functions.
  585. Most people will answer N.
  586. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  587. bool "Do not require digit grouping when the \"'\" flag is specified"
  588. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  589. default y
  590. help
  591. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  592. This is the standard glibc behavior. If the initial string of digits
  593. exceeds the maximum group number, the input will be treated as a normal
  594. non-grouped number.
  595. Most people will answer N.
  596. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  597. bool "Support glibc's register_printf_function() (glibc-compat)"
  598. depends on !USE_OLD_VFPRINTF
  599. default n
  600. help
  601. Answer Y to support glibc's register_printf_function() to allow an
  602. application to add its own printf conversion specifiers.
  603. NOTE: This implementation limits the number or registered specifiers to 10.
  604. NOTE: This implementation requires new conversion specifiers to be ASCII
  605. characters (0-0x7f). This is to avoid problems with processing
  606. format strings in locales with different multibyte conversions.
  607. Most people will answer N.
  608. config USE_OLD_VFPRINTF
  609. bool "Use the old vfprintf implementation"
  610. depends on !UCLIBC_HAS_WCHAR
  611. default n
  612. help
  613. Set to true to use the old vfprintf instead of the new. This is roughly
  614. C89 compliant with some extensions, and is much smaller. However, it does
  615. not support wide chars, positional args, or glibc custom printf specifiers.
  616. Most people will answer N.
  617. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  618. int "Maximum number of positional args. Either 0 or >= 9."
  619. depends on !USE_OLD_VFPRINTF
  620. default 9
  621. help
  622. Set the maximum number of positional args supported by the printf/scanf
  623. functions. The Single Unix Specification Version 3 requires a minimum
  624. value of 9. Setting this to a value lower than 9 will disable positional
  625. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  626. WARNING! The workspace to support positional args is currently allocated
  627. on the stack. You probably don't want to set this to too high a value.
  628. Most people will answer 9.
  629. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  630. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  631. default n
  632. help
  633. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  634. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  635. Answer Y to enable support for glibc's 'a' flag for the scanf string
  636. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  637. auto-allocate sufficient memory to hold the data retrieved.
  638. Most people will answer N.
  639. choice
  640. prompt "Stdio buffer size"
  641. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  642. help
  643. Please select a value for BUFSIZ. This will be used by the
  644. stdio subsystem as the default buffer size for a file, and
  645. affects fopen(), setvbuf(), etc.
  646. NOTE: Setting this to 'none' will disable buffering completely.
  647. However, BUFSIZ will still be defined in stdio.h as 256 because
  648. many applications use this value.
  649. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  650. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  651. depends !UCLIBC_HAS_WCHAR
  652. config UCLIBC_HAS_STDIO_BUFSIZ_256
  653. bool "256 (minimum ANSI/ISO C99 value)"
  654. config UCLIBC_HAS_STDIO_BUFSIZ_512
  655. bool "512"
  656. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  657. bool "1024"
  658. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  659. bool "2048"
  660. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  661. bool "4096"
  662. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  663. bool "8192"
  664. # If you add more choices, you will need to update uClibc_stdio.h.
  665. endchoice
  666. choice
  667. prompt "Stdio builtin buffer size (uClibc-specific)"
  668. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  669. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  670. help
  671. When a FILE is created with fopen(), an attempt is made to allocate
  672. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  673. succeed but the FILE will be unbuffered.
  674. This option adds a small amount of space to each FILE to act as an
  675. emergency buffer in the event of a buffer allocation failure.
  676. Most people will answer None.
  677. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  678. bool "None"
  679. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  680. bool "4"
  681. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  682. bool "8"
  683. # If you add more choices, you will need to update uClibc_stdio.h.
  684. endchoice
  685. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  686. bool "Attemt to shutdown stdio subsystem when abort() is called."
  687. default n
  688. help
  689. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  690. change made in SUSv3. Previously, abort() was required to have the affect of
  691. fclose() on all open streams. The wording has been changed to "may" from "shall".
  692. Most people will answer N.
  693. config UCLIBC_HAS_STDIO_GETC_MACRO
  694. bool "Provide a macro version of getc()"
  695. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  696. default y
  697. help
  698. Provide a macro version of getc().
  699. Most people will answer Y.
  700. config UCLIBC_HAS_STDIO_PUTC_MACRO
  701. bool "Provide a macro version of putc()"
  702. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  703. default y
  704. help
  705. Provide a macro version of putc().
  706. Most people will answer Y.
  707. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  708. bool "Support auto-r/w transition"
  709. default y
  710. help
  711. Answer Y to enable the stdio subsystem to automaticly transition
  712. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  713. When a file is opened with update mode ('+' as the second or third character
  714. in the list of mode argument values), both input and output may be performed
  715. on the associated stream. However, output shall not be directly followed by
  716. input without an intervening call to the fflush function or to a file
  717. positioning function (fseek, fsetpos, or rewind), and input shall not be
  718. directly followed by output without an intervening call to a file positioning
  719. function, unless the input operation encounters end­of­file.
  720. Most people will answer Y.
  721. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  722. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  723. depends on UCLIBC_HAS_LFS
  724. default n
  725. help
  726. Answer Y to enable a uClibc-specific extension to allow passing an
  727. additional 'F' flag in the mode string for fopen() to specify that
  728. the file should be open()ed with the O_LARGEFILE flag set.
  729. Most people will answer N.
  730. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  731. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  732. default n
  733. help
  734. Answer Y to support a glibc extension to allow passing
  735. additional 'x' flag in the mode string for fopen() to specify that
  736. the file should be open()ed with the O_EXCL flag set.
  737. Most people will answer N.
  738. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  739. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  740. default n
  741. help
  742. Answer Y to support the glibc 'custom stream' extension functions
  743. fmemopen(), open_memstream(), and fopencookie().
  744. NOTE: There are some minor differences regarding seeking behavior.
  745. Most people will answer N.
  746. config UCLIBC_HAS_PRINTF_M_SPEC
  747. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  748. default n
  749. help
  750. Answer Y to support a glibc extension to interpret '%m' in printf
  751. format strings as an instruction to output the error message string
  752. (as generated by strerror) corresponding to the current value of 'errno'.
  753. Most people will answer N.
  754. config UCLIBC_HAS_ERRNO_MESSAGES
  755. bool "Include the errno message text in the library"
  756. default y
  757. help
  758. Answer Y if you want to include the errno message text in the
  759. library. This adds about 3K to the library, but enables strerror()
  760. to generate text other than 'Unknown error <number>'.
  761. Most people will answer Y.
  762. config UCLIBC_HAS_SYS_ERRLIST
  763. bool "Support sys_errlist[] (obsolete-compat)"
  764. depends on UCLIBC_HAS_ERRNO_MESSAGES
  765. default n
  766. help
  767. Answer Y if you want to support the obsolete sys_errlist[].
  768. This adds about 0.5k to the library, except for the mips
  769. arch where it adds over 4K.
  770. WARNING! In the future, support for sys_errlist[] may be unavailable
  771. in at least some configurations. In fact, it may be removed altogether.
  772. Most people will answer N.
  773. config UCLIBC_HAS_SIGNUM_MESSAGES
  774. bool "Include the signum message text in the library"
  775. default y
  776. help
  777. Answer Y if you want to include the signum message text in the
  778. library. This adds about 0.5K to the library, but enables strsignal()
  779. to generate text other than 'Unknown signal <number>'.
  780. Most people will answer Y.
  781. config UCLIBC_HAS_SYS_SIGLIST
  782. bool "Support sys_siglist[] (bsd-compat)"
  783. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  784. default n
  785. help
  786. Answer Y if you want to support sys_siglist[].
  787. WARNING! In the future, support for sys_siglist[] may be unavailable
  788. in at least some configurations. In fact, it may be removed altogether.
  789. Most people will answer N.
  790. config UCLIBC_HAS_GETTEXT_AWARENESS
  791. bool "Include gettext awareness"
  792. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  793. default n
  794. help
  795. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  796. Answer Y if you want to include weak stub gettext support and
  797. make the *strerror*() and strsignal() functions gettext-aware.
  798. Currently, to get functional gettext functionality you will need
  799. to use gnu gettext.
  800. Most people will answer N.
  801. config UCLIBC_HAS_GNU_GETOPT
  802. bool "Support gnu getopt"
  803. default y
  804. help
  805. Answer Y if you want to include full gnu getopt() instead of a
  806. (much smaller) SUSv3 compatible getopt().
  807. Most people will answer Y.
  808. endmenu
  809. menu "Big and Tall"
  810. config UCLIBC_HAS_REGEX
  811. bool "Regular Expression Support"
  812. default y
  813. help
  814. POSIX regular expression code is really big -- 27k all by itself.
  815. If you don't use regular expressions, turn this off and save space.
  816. Of course, if you only staticly link, leave this on, since it will
  817. only be included in your apps if you use regular expressions.
  818. config UCLIBC_HAS_WORDEXP
  819. bool "Support the wordexp() interface"
  820. default n
  821. help
  822. The SuSv3 wordexp() interface performs word expansions per the Shell
  823. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  824. intended for use by applications that want to implement all of the
  825. standard Bourne shell expansions on input data.
  826. This interface is rarely used, and very large. Unless you have a
  827. pressing need for wordexp(), you should probably answer N.
  828. config UCLIBC_HAS_FTW
  829. bool "Support the ftw() and nftw() interfaces"
  830. default n
  831. help
  832. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  833. directory paths while repeatedly calling a function.
  834. This interface is rarely used, and adds around 4.5k. Unless you have
  835. a pressing need for ftw() or nftw(), you should probably answer N.
  836. config UCLIBC_HAS_GLOB
  837. bool "Support the glob() interface"
  838. default y
  839. help
  840. The glob interface is somewhat large (weighing in at about 4k). It
  841. is used fairly often, but is an option since people wanting to go for
  842. absolute minimum size may wish to omit it.
  843. Most people will answer Y.
  844. endmenu
  845. menu "Library Installation Options"
  846. config SHARED_LIB_LOADER_PREFIX
  847. string "Shared library loader path"
  848. depends on BUILD_UCLIBC_LDSO
  849. default "$(DEVEL_PREFIX)/lib"
  850. help
  851. When using shared libraries, this path is the location where the
  852. shared library will be invoked. This value will be compiled into
  853. every binary compiled with uClibc.
  854. For a typical target system this should be set to "/lib", such that
  855. 'make install' will install /lib/ld-uClibc.so.0.
  856. BIG FAT WARNING:
  857. If you do not have a shared library loader with the correct name
  858. sitting in the directory this points to, your binaries will not
  859. run.
  860. config RUNTIME_PREFIX
  861. string "uClibc runtime library directory"
  862. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  863. help
  864. RUNTIME_PREFIX is the directory into which the uClibc runtime
  865. libraries will be installed. The result will look something
  866. like the following:
  867. $(RUNTIME_PREFIX)/
  868. lib/ <contains all runtime libraries>
  869. usr/bin/ldd <the ldd utility program>
  870. sbin/ldconfig <the ldconfig utility program>
  871. This value is used by the 'make install' Makefile target. Since this
  872. directory is compiled into the shared library loader, you will need to
  873. recompile uClibc if you change this value...
  874. For a typical target system this should be set to "/", such that
  875. 'make install' will install /lib/libuClibc-<VERSION>.so
  876. config DEVEL_PREFIX
  877. string "uClibc development environment directory"
  878. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  879. help
  880. DEVEL_PREFIX is the directory into which the uClibc development
  881. environment will be installed. The result will look something
  882. like the following:
  883. $(DEVEL_PREFIX)/
  884. lib/ <contains static libs>
  885. include/ <Where all the header files go>
  886. This value is used by the 'make install' Makefile target when
  887. installing a uClibc development environment.
  888. For a typical target system this should be set to "/usr", such that
  889. 'make install' will install /usr/include/<header files>.
  890. endmenu
  891. menu "uClibc security related options"
  892. config UCLIBC_SECURITY
  893. bool "Enable security options"
  894. default n
  895. config UCLIBC_BUILD_PIE
  896. bool "Build utilities as ET_DYN/PIE executables"
  897. depends on UCLIBC_SECURITY
  898. depends on HAVE_SHARED
  899. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  900. select FORCE_SHAREABLE_TEXT_SEGMENTS if BUILD_UCLIBC_LDSO
  901. default y
  902. help
  903. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  904. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  905. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  906. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  907. libraries have to be built with -fPIC or -fpic, and all assembler
  908. functions must be written as position independent code (PIC).
  909. config UCLIBC_HAS_SSP
  910. bool "Support for propolice smashing stack protector"
  911. depends on UCLIBC_SECURITY
  912. default n
  913. help
  914. Add propolice smashing stack protector to the library.
  915. This requires a patched version of GCC, supporting the
  916. -fstack-protector[-all] options, with the __guard and
  917. __stack_smash_handler functions removed from libgcc.
  918. These functions are added to libc instead.
  919. More information at:
  920. <http://www.research.ibm.com/trl/projects/security/ssp/>
  921. Most people will answer N.
  922. config SSP_QUICK_CANARY
  923. bool "Use simple guard values without accessing /dev/urandom"
  924. depends on UCLIBC_HAS_SSP
  925. default n
  926. help
  927. Use gettimeofday(2) to define the __guard without accessing
  928. /dev/urandom.
  929. WARNING: This makes smashing stack protector vulnerable to timing
  930. attacks.
  931. Most people will answer N.
  932. choice
  933. prompt "Propolice protection blocking signal"
  934. depends on UCLIBC_HAS_SSP
  935. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  936. default PROPOLICE_BLOCK_SEGV if DODEBUG
  937. help
  938. "abort" use SIGABRT to block offending programs.
  939. This is the default implementation.
  940. "segfault" use SIGSEGV to block offending programs.
  941. Use this for debugging.
  942. If unsure, answer "abort".
  943. config PROPOLICE_BLOCK_ABRT
  944. bool "abort"
  945. config PROPOLICE_BLOCK_SEGV
  946. bool "segfault"
  947. endchoice
  948. config UCLIBC_BUILD_SSP
  949. bool "Build uClibc with propolice protection"
  950. depends on UCLIBC_HAS_SSP
  951. default n
  952. help
  953. Build all libraries and executables with propolice protection enabled.
  954. config UCLIBC_BUILD_RELRO
  955. bool "Build uClibc with RELRO"
  956. depends on UCLIBC_SECURITY
  957. depends on BUILD_UCLIBC_LDSO
  958. default y
  959. help
  960. Build all libraries and executables with -z relro.
  961. config UCLIBC_BUILD_NOW
  962. bool "Build uClibc with NOW"
  963. depends on UCLIBC_SECURITY
  964. depends on BUILD_UCLIBC_LDSO
  965. default y
  966. help
  967. Build all libraries and executables with -z now.
  968. config UCLIBC_BUILD_NOEXECSTACK
  969. bool "Build uClibc with noexecstack marking"
  970. depends on UCLIBC_SECURITY
  971. default y
  972. help
  973. Mark all assembler files as noexecstack. This will result in marking
  974. all libraries and executables built against uClibc not requiring
  975. executable stack.
  976. endmenu
  977. menu "uClibc development/debugging options"
  978. config CROSS_COMPILER_PREFIX
  979. string "Cross-compiling toolchain prefix"
  980. default ""
  981. help
  982. The prefix used to execute your cross-compiling toolchain. For
  983. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  984. then enter 'arm-linux-uclibc-' here.
  985. config DODEBUG
  986. bool "Build uClibc with debugging symbols"
  987. select PTHREADS_DEBUG_SUPPORT if UCLIBC_HAS_THREADS
  988. default n
  989. help
  990. Say Y here if you wish to compile uClibc with debugging symbols.
  991. This will allow you to use a debugger to examine uClibc internals
  992. while applications are running. This increases the size of the
  993. library considerably and should only be used when doing development.
  994. If you are doing development and want to debug uClibc, answer Y.
  995. Otherwise, answer N.
  996. config DODEBUG_PT
  997. bool "Build pthread with debugging output"
  998. depends on UCLIBC_HAS_THREADS
  999. default n
  1000. help
  1001. Enable debug output in libpthread. This is only useful when doing
  1002. development in libpthread itself.
  1003. Otherwise, answer N.
  1004. config DOASSERTS
  1005. bool "Build uClibc with run-time assertion testing"
  1006. default n
  1007. help
  1008. Say Y here to include runtime assertion tests.
  1009. This enables runtime assertion testing in some code, which can
  1010. increase the size of the library and incur runtime overhead.
  1011. If you say N, then this testing will be disabled.
  1012. config SUPPORT_LD_DEBUG
  1013. bool "Build the shared library loader with debugging support"
  1014. depends on BUILD_UCLIBC_LDSO
  1015. default n
  1016. help
  1017. Answer Y here to enable all the extra code needed to debug the uClibc
  1018. native shared library loader. The level of debugging noise that is
  1019. generated depends on the LD_DEBUG environment variable... Just set
  1020. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1021. debug your application. Diagnostic messages will then be printed to
  1022. the stderr.
  1023. For now these debugging tokens are available:
  1024. detail provide more information for some options
  1025. move display copy processing
  1026. symbols display symbol table processing
  1027. reloc display relocation processing; detail shows the relocation patch
  1028. nofixups never fixes up jump relocations
  1029. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1030. all Enable everything!
  1031. The additional environment variable:
  1032. LD_DEBUG_OUTPUT=file
  1033. redirects the diagnostics to an output file created using
  1034. the specified name and the process id as a suffix.
  1035. An excellent start is simply:
  1036. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1037. or to log everything to a file named 'logfile', try this
  1038. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1039. If you are doing development and want to debug uClibc's shared library
  1040. loader, answer Y. Mere mortals answer N.
  1041. config SUPPORT_LD_DEBUG_EARLY
  1042. bool "Build the shared library loader with early debugging support"
  1043. depends on BUILD_UCLIBC_LDSO
  1044. default n
  1045. help
  1046. Answer Y here to if you find the uClibc shared library loader is
  1047. crashing or otherwise not working very early on. This is typical
  1048. only when starting a new port when you haven't figured out how to
  1049. properly get the values for argc, argv, environ, etc. This method
  1050. allows a degree of visibility into the very early shared library
  1051. loader initialization process. If you are doing development and want
  1052. to debug the uClibc shared library loader early initialization,
  1053. answer Y. Mere mortals answer N.
  1054. config UCLIBC_MALLOC_DEBUGGING
  1055. bool "Build malloc with debugging support"
  1056. depends MALLOC
  1057. default n
  1058. help
  1059. Answer Y here to compile extra debugging support code into malloc.
  1060. Malloc debugging output may then be enabled at runtime using the
  1061. MALLOC_DEBUG environment variable.
  1062. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1063. a bitmask with the following bits:
  1064. 1 - do extra consistency checking
  1065. 2 - output messages for malloc/free calls and OS allocation calls
  1066. 4 - output messages for the `MMB' layer
  1067. 8 - output messages for internal malloc heap manipulation calls
  1068. Because this increases the size of malloc appreciably (due to strings
  1069. etc), you should say N unless you need to debug a malloc problem.
  1070. config WARNINGS
  1071. string "Compiler Warnings"
  1072. default "-Wall"
  1073. help
  1074. Set this to the set of gcc warnings you wish to see while compiling.
  1075. config UCLIBC_MJN3_ONLY
  1076. bool "Manuel's hidden warnings"
  1077. default n
  1078. help
  1079. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1080. Most people will answer N.
  1081. endmenu