Documentation Home
>
Linker and Libraries Guide
>
Appendix??A Link-Editor Quick Reference
>
Static Mode
> Creating a Relocatable Object
Linker and Libraries Guide
Previous
: Chapter??9 Mapfiles
Next
: Creating a Static Executable
Creating a Relocatable Object
To create a relocatable object use the
-r
option.
$
ld -r -o temp.o file1.o file2.o file3.o .....
Previous
: Chapter??9 Mapfiles
Next
: Creating a Static Executable
© 2010, Oracle Corporation and/or its affiliates