PDA

View Full Version : cross-compiling (easy) question..



RUBiK
04-24-2002, 09:37 PM
hey...

finally able to compile a bunch of binaries for the tivo with the cross-compiler i built last week, but i have a quick question...

i forgot how to strip these binaries as i'm making/linking them... since i'm cross-compiling, i can't just my host OS 'strip' command cause.. well... it strips it wrong (wouldn't make sense for it to strip binaries for a different system/architecture, right?)...

i know i can cross-compile a ppc (tivo) 'strip' and use it on the tivo on the bin, but since i'm cross-compiling and linking on the host OS, can't i just tell it to spit out the stripped binary (just like i can tell it to compile statically vs. dynamically)?

i know there's a way.. just forgot how..

embeem
04-24-2002, 11:55 PM
-

RUBiK
04-25-2002, 05:43 PM
embeem

Thank you, Sir.

I had forgotten about /usr/local/tivo/bin/strip that was compiled while making the cross-compiler binaries. Works like a charm just as intended.

Thanks for the '-s' switch too. It's been a while since I used (g)cc with regularity and I've been used to stripping afterwards and not during compile/linking.