当前位置: 技术问答>linux和unix
gcc参数问题
来源: 互联网 发布时间:2016-07-21
本文导语: 本帖最后由 gentlewind0 于 2009-12-05 14:24:17 编辑 $(CC) -s -fPIC -lpthread -rdynamic -o $@ $(OBJS) -ldl -lm -L$(PROJECTDIR)/lib/ -lxgdmaths -lxgdmodule -ldev -lxgdemv arm-elf-flthdr -s 10240 $(TARGET) 请问参数-s -fPIC -lpthread -rdynamic 和 arm...
arm-elf-flthdr -s 10240 $(TARGET)
请问参数-s -fPIC -lpthread -rdynamic 和 arm-elf-flthdr -s 10240 每个具有什么含义
|
请问参数-s -fPIC -lpthread -rdynamic 和 arm-elf-flthdr -s 10240 每个具有什么含义
-s strip,把符号删除
-fPIC 编译共享库时产生与位置无关代码
-fPIC
If supported for the target machine, emit position-independent
code, suitable for dynamic linking and avoiding any limit on the
size of the global offset table. This option makes a difference on
the m68k and the SPARC.
Position-independent code requires special support, and therefore
works only on certain machines. .
-lpthread 指定需要将线程库编译进去
-rdynamic 通知链接器将所有符号添加到动态符号表中
-rdynamic
Pass the flag ‘-export-dynamic’ to the ELF linker, on targets that support
it. This instructs the linker to add all symbols, not only used ones, to the
dynamic symbol table. This option is needed for some uses of dlopen or to
allow obtaining backtraces from within a program.
arm-elf-flthdr -s 10240 调整目标的栈大小为10240
-s strip,把符号删除
-fPIC 编译共享库时产生与位置无关代码
-fPIC
If supported for the target machine, emit position-independent
code, suitable for dynamic linking and avoiding any limit on the
size of the global offset table. This option makes a difference on
the m68k and the SPARC.
Position-independent code requires special support, and therefore
works only on certain machines. .
-lpthread 指定需要将线程库编译进去
-rdynamic 通知链接器将所有符号添加到动态符号表中
-rdynamic
Pass the flag ‘-export-dynamic’ to the ELF linker, on targets that support
it. This instructs the linker to add all symbols, not only used ones, to the
dynamic symbol table. This option is needed for some uses of dlopen or to
allow obtaining backtraces from within a program.
arm-elf-flthdr -s 10240 调整目标的栈大小为10240