What is gcc -s option?

Dan Osterrath do3 at mail.inf.tu-dresden.de
Thu Jan 9 15:04:42 PST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> BTW, if making object modules *only*, I bet the 'gcc -s' would make those
> object files non-linkable? IOW, if we tried to just link a bunch of
> objects together (meaning they are input to the linker a second time)
> after originally making them with 'gcc -s', I *suspect* they would fail to
> link properly because of missing but needed (for resolution) symbols.

Nope. I tried a nm to my libraries and that showed me many symbols. I tried a 
"strip --strip-debug" on a backup of a library and that did not change 
anything with this file. The I tried a "strip --strip-all" won it and it gets 
smaller. A nm did not work anymore.
Anyone able to test the difference between "gcc -Xlinker -S" and "gcc -s"?

- -- 
- ----------------------------------------------------------------------
%> ln -s /dev/null /dev/brain
%> ln -s /dev/urandom /dev/world
%> dd if=/dev/world of=/dev/brain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+HgAK9NbB8EM160MRAlWcAJ9BtdX9HmMZGoEszKGO0M7jmlULKgCePOCi
GT4VaPZZeWMC20lhQVxiZLc=
=Bw+y
-----END PGP SIGNATURE-----

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list