HP-UX HB v13.00 Ch-11 - Software Development

HP-UX Handbook Rev 13.00 Page 12 (of 101)
Chapter 11 Software Development
October 29, 2013
Symbols from x.o:
Name Value Scope Type Subspace
sub__Fc | 12|extern|entry |$CODE$
sub__Fi | 0|extern|entry |$CODE$
$
On IA:
Symbols from x.o:
[Index] Value Size Type Bind O Shndx Name
:
[5] | 0| 0|SECT |LOCAL|0| .text|.text
[4] | 0| 0|SECT |LOCAL|0| .text|.text
[11] | 0| 32|FUNC |GLOB |0| .text|_Z3subc
[10] | 0| 32|FUNC |GLOB |0| .text|_Z3subi
[1] | 0| 0|FILE |LOCAL|0| ABS|x.C
To find out the original name of a method, as it exists in the source code, either nm++(1) can be
used on the object, or the mangled method names can be passed to c++filt(1). These tools
revert the mangled name back to the unmangled form, which includes the parameter types:
$ nm++ x.o
On PA:
Symbols from x.o:
Name Value Scope Type Subspace
sub(char) | 12|extern|entry |$CODE$
sub(int) | 0|extern|entry |$CODE$
On IA:
Symbols from x.o:
[Index] Value Size Type Bind O Shndx Name
:
[5] | 0| 0|SECT |LOCAL|0| .text|.text
[4] | 0| 0|SECT |LOCAL|0| .text|.text
[11] | 0| 32|FUNC |GLOB |0| .text|sub(char)
[10] | 0| 32|FUNC |GLOB |0| .text|sub(int)
[1] | 0| 0|FILE |LOCAL|0| ABS|x.C
On PA:
$ c++filt sub__Fc sub__Fi
sub(char)
sub(int)
$