Documentation Home
>
Linker and Libraries Guide
>
Appendix A Link-Editor Quick Reference
>
Static Mode
> Building a Relocatable Object
Linker and Libraries Guide
Previous
: Overview
Next
: Building a Static Executable
Building a Relocatable Object
Use the
-dn
and
-r
options:
$
cc -dn -r -o temp.o file1.o file2.o file3.o .....
Previous
: Overview
Next
: Building a Static Executable
© 2010, Oracle Corporation and/or its affiliates