Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc -s、strip --strip-all、ld --strip-all之间有何区别阿?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
cnhnln
n00b
n00b


Joined: 20 Nov 2004
Posts: 11

PostPosted: Thu Nov 30, 2006 6:45 am    Post subject: gcc -s、strip --strip-all、ld --strip-all之间有何区别阿? Reply with quote

gcc -s是否相当于strip --strip-all了?或者是ld --strip-all?
gcc -s、strip --strip-all、ld --strip-all之间有何区别阿?
如果要移除符号的话,是设置CFLAGS好呢还是LDFLAGS好呢?

找到的一些相关信息

man strip
Quote:
-s
--strip-all
Remove all symbols.
-g
-S
-d
--strip-debug
Remove debugging symbols only.
--strip-unneeded
Remove all symbols that are not needed for relocation processing.

man ld
Quote:
-s
--strip-all
Omit all symbol information from the output file.
-S
--strip-debug
Omit debugger symbol information (but not all symbols) from the
output file.

http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options
Quote:
-s
Remove all symbol table and relocation information from the executable.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum