Config.in 46 KB

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