Table 3 values specify the type (continued)

Parameter Description

Loading ./libfile1.so:

Loading ./libfile2.so:

Loading /usr/lib/hpux32/libc.so:

Loading /usr/lib/hpux32/libdl.so.1:

libraries Dump information about libraries searched.

$ ld main.o +vtype libraries -L. -lfile1 -lfile2 -lc Searching /usr/lib/hpux32/libc.a:

Selecting /usr/lib/hpux32/libc.a

sections Dump information about each input section added to the output file.

$ ld main.o +vtype sections -L. -lfile1 -lfile2 -lc main.o:

section .note NOTE 240 4 added to note segment section .note NOTE 48 4 added to note segment section .IA_64.unwind_info PROGBITS A 28 4

added to text segment

section .text PROGBITS AX 112 16 added to text segment

section .IA_64.unwind UNWIND A 12 4 added to text segment

section .rodata PROGBITS A 9 8 added to text segment

section .HP.opt_annot PROGBITS A 25 8 added to text segment

symbols Dump information about global symbols referenced/defined from/in the input files.

$ ld main.o +vtype symbols -L. -lfile1 -lfile2 -lc main.o:

main is DEFINED GLOBAL FUNC printf is UNDEF GLOBAL FUNC lib1_func is UNDEF GLOBAL FUNC lib2_func is UNDEF GLOBAL FUNC

./libfile1.so:

printf is UNDEF GLOBAL FUNC

_DYNAMIC is DEFINED GLOBAL OBJECT lib1_func is DEFINED GLOBAL FUNC

...

all

Dump all of the above. Same as -v.

$ 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 .note NOTE 240 4 added to note segment section .note NOTE 48 4 added to note segment section .IA_64.unwind_info PROGBITS A 28 4

added to text segment

section .text PROGBITS AX 112 16 added to text segment

section .IA_64.unwind UNWIND A 12 4 added to text segment

section .rodata PROGBITS A 9 8 added to text segment

section .HP.opt_annot PROGBITS A 25 8 added to text segment

Loading ./libfile1.so:

./libfile1.so:

...

Using Linker Commands 49