- 论坛徽章:
- 0
|
-r
--relocateable
Generate relocatable output---i.e., generate an output file that
can in turn serve as input to ld. This is often called partial
linking. As a side effect, in environments that support standard
Unix magic numbers, this option also sets the output file's magic
number to "OMAGIC". If this option is not specified, an absolute
file is produced. When linking C++ programs, this option will not
resolve references to constructors; to do that, use -Ur.
上面是对-r的解释,可是看了还是不懂,有谁能给个例子吗?什么是relocatable? |
|