Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行すると、 (デバッグ フラグをオンにせずに) コンパイラstringsによって生成されたオブジェクト コードに、ソース コード ユニットで使用されるすべてのヘッダーへの絶対パスが含まれていることがわかりました。g++ 4.7.3オブジェクトstrip -sコードに対して を実行しても、これらの文字列は削除されません。そもそもなぜオブジェクトコードに含まれているのでしょうか? 次に、オブジェクト コードからそれらを削除するにはどうすればよいですか?
strings
g++ 4.7.3
strip -s