Reg: gcc option for producing stripped binary output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,I am trying to compile a simple c/c++ code using g++. The binary carried
more information(symbols). Then I used the option -O3 to get a more
optimised code but still there seems to be some information(symbols) not
mandatory for the binary execution. I need to use 'strip' command to remove
those information.[balamurugan@balamurugan Programs]$ ls -l test-rwxrwxr-x.
1 balamurugan balamurugan 14091 Sep 22 09:15 test[balamurugan@balamurugan
Programs]$ g++ -O3 test.cpp -o test[balamurugan@balamurugan Programs]$ ls -l
test-rwxrwxr-x. 1 balamurugan balamurugan 11940 Sep 22 09:15
test[balamurugan@balamurugan Programs]$ strip test[balamurugan@balamurugan
Programs]$ ls -l test-rwxrwxr-x. 1 balamurugan balamurugan 8384 Sep 22 09:15
testI felt there must be some gcc/g++ option to get this stripping as part
of compilation & linking itself.Can anyone help me with
this?Regards,Balamurugan R



--
View this message in context: http://gcc.1065356.n5.nabble.com/Reg-gcc-option-for-producing-stripped-binary-output-tp970227.html
Sent from the gcc - Help mailing list archive at Nabble.com.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux