Kenwood HP 9000 Personal Computer User Manual


 
98 Chapter 3
Linker Tasks
Using 64-bit Mode Linker Options
ld main.o +vtype all -L. -lfile1 -lfile2 -lc
Loading main.o:
main.o:
main is DEFINED GLOBAL FUNC
printf is UNDEF GLOBAL FUNC
lib1_func is UNDEF GLOBAL FUNC
lib2_func is UNDEF GLOBAL FUNC
main.o:
section .text PROG_BITS AX 116 8 added to text
segment
section .PARISC.unwind UNWIND 16 4 added to text
segment
section .data PROG_BITS AW 96 8 added to data
segment
Loading ./libfile1.sl:
./libfile1.sl:
...
Linking with the 64-bit crt0.o Startup File
In 32-bit mode, you must always include crt0.o on the link line.
In 64-bit mode, you must include crt0.o on the link line for all fully
archive links (ld -noshared) and in compatibility mode (+compat). You
do not need to include the crt0.o startup file on the ld command line
for shared bound links. In 64-bit mode, the dynamic loader, dld.sl, does
some of the startup duties previously done by crt0.o.
See “The crt0.o Startup File” on page 43, and crt0(3) manual page for
more information.