This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, Dec 10, 2010 at 2:10 PM, Yann E. MORIN <yann.morin.1998@anciens.enib.fr> wrote: > Bryan, All, > > On Friday 10 December 2010 19:41:31 Bryan Hundven wrote: >> for _path in "LIST OF PATHS"; do >> for _file in $(find ${_path} -type f | xargs file | grep 'not >> stripped' | cut -d: -f1); do ${CT_TARGET}-strip ${_file}; done >> done > > Well, the question was rather about how to establish this "LIST OF PATHS" > in the first place. Once we have that, it's fairly easy to find executables > (and also libraries?) to be stripped. config STRIP_ALL_TOOLCHAIN_EXECUTABLES bool prompt "Strip all toolchain executables" default y help All build host executables contain a lot of unnecessary info. By stripping all executables it slightly speeds up the compilation of large projects. NOTE: It does NOT strip the target libraries, only HOST executables Right... I shouldn't be stripping libraries, unless we introduce STRIP_ALL_TOOLCHAIN_LIBRARIES... which we currently do not. Maybe this will suffice?: for _file in $(find ${CT_PREFIX_DIR} -type f | xargs file | \ grep 'not stripped'| grep 'executable' | cut -d: -f1); do CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_file}" done Then we are basically getting all of the executables that are not stripped. The more options we add to find, the faster find will run. So if we know that all 'executables' are actually '0755' or '0775' (at least executable by the user), we could add that to find too. > Regards, > Yann E. MORIN. > > -- > .-----------------.--------------------.------------------.--------------------. > | ÂYann E. MORIN Â| Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | > | +33 662 376 056 | Software ÂDesigner | \ / CAMPAIGN   | Â___        | > | +33 223 225 172 `------------.-------: ÂX ÂAGAINST   Â| Â\e/ ÂThere is no Â| > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL  Â|  v  conspiracy. Â| > '------------------------------^-------^------------------^--------------------' > -Bryan -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |