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 3:13 PM, Bryan Hundven <bryanhundven@gmail.com> wrote: > 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 and maybe ALL should be EXTRA or DEBUG. > 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 > -- Bryan Hundven bryanhundven@gmail.com -- 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] |