aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * build system: stop .eh_frame generationDenys Vlasenko2012-09-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Rich Felker: By default, modern GCC generates DWARF2 debug/unwind tables in the .eh_frame section of the object files/binaries. This adds significant bloat (as much as 15%) to the size of the busybox binary, including the portion mapped/loaded into memory at runtime (possibly a big issue for NOMMU targets), and the section is not strippable with the strip command due to being part of the loaded program text. I've since done some further checking - both testing and asking the GCC developers about it - and it seems the solution is to add to the CFLAGS -fno-unwind-tables and -fno-asynchronous-unwind-tables. If debugging is disabled, this will prevent GCC from outputting DWARF2 tables entirely. But since busybox builds with -g by default, the interesting case is what happens then. I originally thought these options would break debugging, but they don't; instead, they tell GCC to output the DWARF2 tables in the .debug_frame section instead of the newish .eh_frame section (used for exception handling). With these options added, busybox_unstripped is still fully debuggable, and the final busybox binary loses the 15% bloat factor from the DWARF2 tables. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * disable format security warningsMike Frysinger2012-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We pass strings to printf directly a lot. Some distros enable some flags in their gcc by default like -Wformat-security. With these two things, we end up with a lot of build warnings like so: loginutils/chpasswd.c:42:3: warning: format not a string literal and no format arguments [-Wformat-security] But we don't care. Our focus is first and foremost on size, so adding a lot of dummy calls like: - printf(some_constant_string); + printf("%s", some_constant_string); is pointless bloat. Disable this warning flag if the compiler supports it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | win32: support fancy prompts and (limited) tilde expansionRon Yorston2012-04-231-0/+1
| |
* | Merge commit '1_20_0' into mergeRon Yorston2012-04-231-1/+4
|\|
| * fix build breakage with gcc 4.2.1Denys Vlasenko2012-04-201-1/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'busybox' into mergeRon Yorston2012-03-231-5/+30
|\| | | | | | | | | Conflicts: Makefile.flags
| * build system: remove bogus $(1) in last commitDenys Vlasenko2012-03-111-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * build system: detect missing crypt and drop it from linkingDenys Vlasenko2012-03-101-7/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * build system: fix broken CONFIG_SYSROOT handlingDenys Vlasenko2012-03-081-1/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Add SYSROOT, EXTRA_{LDFLAGS,LDLIBS} config opts; sample Android NDK configRob Walker2012-03-071-0/+15
| | | | | | | | | | Signed-off-by: Rob Walker <rwalker@rwalker.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Fix link failure on some platforms when PAM is enabledTristan Schmelcher2011-12-051-1/+8
| | | | | | | | | | Signed-off-by: Tristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit 'c0cae52662ccced9df19f19ec94238d1b1e3bd71' into mergeRon Yorston2012-03-231-1/+6
|\| | | | | | | | | | | Conflicts: Makefile.flags scripts/basic/fixdep.c
| * Android build fixes and alternate (hopefully simpler) defconfig for itDenys Vlasenko2011-09-091-0/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '56a3b82e9692a25ef9c9269e88feac0d579ce8e8' into mergeRon Yorston2012-03-221-2/+2
|\| | | | | | | | | | | | | Conflicts: coreutils/ls.c include/platform.h libbb/bb_basename.c
| * Compile options: default to -O2 when -Os is not availableWolfgang Denk2011-05-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent versions of GCC for PowerPC systems suffer from some compiler bugs which prevent the use of "--enable-target-optspace" in their configuration, which makes the compiler option "-Os" unavailable; for reference see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48278 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45053 In the result, BusyBox will be compiled without any optimization options, which causes a huge binary (1.8 MiB for default configuration on PPC, built with gcc 54.51 from the Yocto / Poky / OpenEmbedded tool chains). This commit changes behaviour so "-O2" gets used as fallback when "-Os" is not available. This reduces the image size in above test to 1.3 MiB. This is still 10...15% more then what we get with "-Os", but much better than using no optimization at all. Signed-off-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge remote-tracking branch 'upstream/master'Nguyễn Thái Ngọc Duy2011-01-041-1/+1
|\|
| * allow SKIP_STRIP to be set in the envMike Frysinger2010-11-161-1/+1
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | win32: Makefile: support building with network supportNguyễn Thái Ngọc Duy2010-09-151-0/+3
| |
* | win32: Import fnmatch sourceNguyễn Thái Ngọc Duy2010-09-101-1/+2
| | | | | | | | | | This was extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository.
* | Makefile: support building on Windows using MinGW compilerNguyễn Thái Ngọc Duy2010-09-101-0/+5
|/
* diff: more compiler compat fixes. no code changesDan Fandrich2010-02-041-0/+1
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preliminary work for gcc 4.4.0Denys Vlasenko2009-08-221-0/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* the -elf2flt flag can be used w/out -Wl, so drop the requirement so people ↵Mike Frysinger2009-03-121-3/+3
| | | | can use either form
* - add flash_eraseallBernhard Reutner-Fischer2009-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the result after converting mtd-utils' flash_eraseall to BB. The functionality given by this patch almost the same except that this one does not support long options. I needed this tool a system which does not have a lot of flash for RFS and merging this into BB as the only way out. [bigeasy@]$ ./scripts/bloat-o-meter bb_wo_fl bb_w_fl function old new delta flash_eraseall_main - 1072 +1072 show_progress - 62 +62 packed_usage 25156 25176 +20 applet_names 1958 1973 +15 applet_main 2352 2360 +8 target_endian - 4 +4 applet_nameofs 588 590 +2 applet_install_loc 147 148 +1 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 5/0 up/down: 1184/0) Total: 1184 bytes [bigeasy@]$ size miscutils/flash_eraseall.o text data bss dec hex filename 1586 4 0 1590 636 miscutils/flash_eraseall.o Signed-off-by: Benedigt Spranger <b.spranger@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
* - add CONFIG_EXTRA_CFLAGS (thanks to keesj)Bernhard Reutner-Fischer2009-01-221-0/+5
| | | | | | This helps with remembering additional flags like e.g. cpu settings for people who did not configured their compiler to produce code for their cpu per default.
* - reinstate commented out _FORTIFY_SOURCE that was somehow dropped by Denys?Bernhard Reutner-Fischer2008-08-051-1/+2
|
* Reinstate DEBUG_PESSIMIZE (by Christian Ionescu-Idbohrn)Denis Vlasenko2008-06-121-3/+10
|
* Build system: track -Wl,-elf2flt in CFLAGS_busybox too.Denis Vlasenko2008-06-061-2/+7
| | | | | | Document in comments that it generally should be thers, not in LDFLAGS
* remove -fno-jump-tables - after stripping it proved to be worseDenis Vlasenko2008-06-041-4/+0
|
* build system: add PIE build optionDenis Vlasenko2008-06-041-4/+16
|
* more -Wall warning fixes. -Wall is enabled now.Denis Vlasenko2008-05-181-3/+7
|
* Add more -W options to gcc.Denis Vlasenko2008-05-151-14/+3
|
* build system: do not rebuild entire tree if it is movedDenis Vlasenko2008-05-081-1/+1
|
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* defconfig: updateDenis Vlasenko2007-12-241-1/+2
| | | | | | | appletli.c: add vda's (C) top: fixlet for incorrect display of "0" Makefile: reduce stack size from 20k to 16k
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+4
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* add -fpic to CC flags when we build libbusybox (14% smaller .so)Denis Vlasenko2007-10-111-0/+6
|
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 3Denis Vlasenko2007-10-071-1/+2
|
* reviving libbusybox, adding CONFIG_INDIVIDUAL part 2Denis Vlasenko2007-10-071-8/+5
|
* login: optional support for PAMDenis Vlasenko2007-08-211-3/+5
|
* Modify method of linking against libs. Now we fisrt try allDenis Vlasenko2007-07-171-3/+10
| | | | | | | | specified libs, and if it succeeds, we try to remove them one-by-one. If link succeeds, then library is thrown out. Should solve the problem with SELinux linking in libsepol even when not needed.
* random shrinkage of statics, -60 bytes savedDenis Vlasenko2007-06-211-2/+2
|
* since we removed the deprecated matches() now and thus not alot of warnings ↵Bernhard Reutner-Fischer2007-06-211-0/+3
| | | | | | are currently seen, let's strive to fixup these: - warn a little bit about unused results
* punt %.bflt target in favor of proper LDFLAGS=-Wl,-elf2flt handlingMike Frysinger2007-06-191-1/+8
|
* moved biggest stack buffers to malloc space, or made their size configurableDenis Vlasenko2007-06-101-0/+1
| | | | | | | | | | | | | | | | | (8k of shell line edit buffer is an overkill) # make ARCH=i386 bloatcheck function old new delta read_line_input 3933 3967 +34 ifaddrlist 348 345 -3 do_loadfont 208 191 -17 edit_file 840 819 -21 .rodata 129112 129080 -32 uncompress 1305 1268 -37 loadfont_main 566 495 -71 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 34/-181) Total: -147 bytes
* set default FLTFLAGS for a fatty stackMike Frysinger2007-04-051-0/+3
|
* introduce the concept of LDLIBS for additional libraries so that when we do ↵Mike Frysinger2007-03-301-3/+3
| | | | the final link, the objects/libraries are in the correct order
* - reinstate dmalloc and efence supportBernhard Reutner-Fischer2007-03-281-0/+9
|
* new applets: selinux utils by KaiGai Kohei <kaigai@kaigai.gr.jp>Denis Vlasenko2007-02-061-0/+4
|
* add -Wwrite-strings to MakefileDenis Vlasenko2007-02-011-4/+4
|