aarch64-none-linux-gnu-nm.1 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "NM 1"
  132. .TH NM 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. nm \- list symbols from object files
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. nm [\fB\-A\fR|\fB\-o\fR|\fB\-\-print\-file\-name\fR] [\fB\-a\fR|\fB\-\-debug\-syms\fR]
  142. [\fB\-B\fR|\fB\-\-format=bsd\fR] [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR]]
  143. [\fB\-D\fR|\fB\-\-dynamic\fR] [\fB\-f\fR\fIformat\fR|\fB\-\-format=\fR\fIformat\fR]
  144. [\fB\-g\fR|\fB\-\-extern\-only\fR] [\fB\-h\fR|\fB\-\-help\fR]
  145. [\fB\-\-ifunc\-chars=\fR\fI\s-1CHARS\s0\fR]
  146. [\fB\-l\fR|\fB\-\-line\-numbers\fR] [\fB\-\-inlines\fR]
  147. [\fB\-n\fR|\fB\-v\fR|\fB\-\-numeric\-sort\fR]
  148. [\fB\-P\fR|\fB\-\-portability\fR] [\fB\-p\fR|\fB\-\-no\-sort\fR]
  149. [\fB\-r\fR|\fB\-\-reverse\-sort\fR] [\fB\-S\fR|\fB\-\-print\-size\fR]
  150. [\fB\-s\fR|\fB\-\-print\-armap\fR] [\fB\-t\fR \fIradix\fR|\fB\-\-radix=\fR\fIradix\fR]
  151. [\fB\-u\fR|\fB\-\-undefined\-only\fR] [\fB\-V\fR|\fB\-\-version\fR]
  152. [\fB\-X 32_64\fR] [\fB\-\-defined\-only\fR] [\fB\-\-no\-demangle\fR]
  153. [\fB\-\-plugin\fR \fIname\fR]
  154. [\fB\-\-no\-recurse\-limit\fR|\fB\-\-recurse\-limit\fR]]
  155. [\fB\-\-size\-sort\fR] [\fB\-\-special\-syms\fR]
  156. [\fB\-\-synthetic\fR] [\fB\-\-target=\fR\fIbfdname\fR]
  157. [\fIobjfile\fR...]
  158. .SH "DESCRIPTION"
  159. .IX Header "DESCRIPTION"
  160. \&\s-1GNU\s0 \fBnm\fR lists the symbols from object files \fIobjfile\fR....
  161. If no object files are listed as arguments, \fBnm\fR assumes the file
  162. \&\fIa.out\fR.
  163. .PP
  164. For each symbol, \fBnm\fR shows:
  165. .IP "\(bu" 4
  166. The symbol value, in the radix selected by options (see below), or
  167. hexadecimal by default.
  168. .IP "\(bu" 4
  169. The symbol type. At least the following types are used; others are, as
  170. well, depending on the object file format. If lowercase, the symbol is
  171. usually local; if uppercase, the symbol is global (external). There
  172. are however a few lowercase symbols that are shown for special global
  173. symbols (\f(CW\*(C`u\*(C'\fR, \f(CW\*(C`v\*(C'\fR and \f(CW\*(C`w\*(C'\fR).
  174. .RS 4
  175. .ie n .IP """A""" 4
  176. .el .IP "\f(CWA\fR" 4
  177. .IX Item "A"
  178. The symbol's value is absolute, and will not be changed by further
  179. linking.
  180. .ie n .IP """B""" 4
  181. .el .IP "\f(CWB\fR" 4
  182. .IX Item "B"
  183. .PD 0
  184. .ie n .IP """b""" 4
  185. .el .IP "\f(CWb\fR" 4
  186. .IX Item "b"
  187. .PD
  188. The symbol is in the \s-1BSS\s0 data section. This section typically
  189. contains zero-initialized or uninitialized data, although the exact
  190. behavior is system dependent.
  191. .ie n .IP """C""" 4
  192. .el .IP "\f(CWC\fR" 4
  193. .IX Item "C"
  194. .PD 0
  195. .ie n .IP """c""" 4
  196. .el .IP "\f(CWc\fR" 4
  197. .IX Item "c"
  198. .PD
  199. The symbol is common. Common symbols are uninitialized data. When
  200. linking, multiple common symbols may appear with the same name. If the
  201. symbol is defined anywhere, the common symbols are treated as undefined
  202. references.
  203. The lower case \fIc\fR character is used when the symbol is in a
  204. special section for small commons.
  205. .ie n .IP """D""" 4
  206. .el .IP "\f(CWD\fR" 4
  207. .IX Item "D"
  208. .PD 0
  209. .ie n .IP """d""" 4
  210. .el .IP "\f(CWd\fR" 4
  211. .IX Item "d"
  212. .PD
  213. The symbol is in the initialized data section.
  214. .ie n .IP """G""" 4
  215. .el .IP "\f(CWG\fR" 4
  216. .IX Item "G"
  217. .PD 0
  218. .ie n .IP """g""" 4
  219. .el .IP "\f(CWg\fR" 4
  220. .IX Item "g"
  221. .PD
  222. The symbol is in an initialized data section for small objects. Some
  223. object file formats permit more efficient access to small data objects,
  224. such as a global int variable as opposed to a large global array.
  225. .ie n .IP """i""" 4
  226. .el .IP "\f(CWi\fR" 4
  227. .IX Item "i"
  228. For \s-1PE\s0 format files this indicates that the symbol is in a section
  229. specific to the implementation of DLLs.
  230. .Sp
  231. For \s-1ELF\s0 format files this indicates that the symbol is an indirect
  232. function. This is a \s-1GNU\s0 extension to the standard set of \s-1ELF\s0 symbol
  233. types. It indicates a symbol which if referenced by a relocation does
  234. not evaluate to its address, but instead must be invoked at runtime.
  235. The runtime execution will then return the value to be used in the
  236. relocation.
  237. .Sp
  238. Note \- the actual symbols display for \s-1GNU\s0 indirect symbols is
  239. controlled by the \fB\-\-ifunc\-chars\fR command line option. If this
  240. option has been provided then the first character in the string will
  241. be used for global indirect function symbols. If the string contains
  242. a second character then that will be used for local indirect function
  243. symbols.
  244. .ie n .IP """I""" 4
  245. .el .IP "\f(CWI\fR" 4
  246. .IX Item "I"
  247. The symbol is an indirect reference to another symbol.
  248. .ie n .IP """N""" 4
  249. .el .IP "\f(CWN\fR" 4
  250. .IX Item "N"
  251. The symbol is a debugging symbol.
  252. .ie n .IP """n""" 4
  253. .el .IP "\f(CWn\fR" 4
  254. .IX Item "n"
  255. The symbol is in the read-only data section.
  256. .ie n .IP """p""" 4
  257. .el .IP "\f(CWp\fR" 4
  258. .IX Item "p"
  259. The symbol is in a stack unwind section.
  260. .ie n .IP """R""" 4
  261. .el .IP "\f(CWR\fR" 4
  262. .IX Item "R"
  263. .PD 0
  264. .ie n .IP """r""" 4
  265. .el .IP "\f(CWr\fR" 4
  266. .IX Item "r"
  267. .PD
  268. The symbol is in a read only data section.
  269. .ie n .IP """S""" 4
  270. .el .IP "\f(CWS\fR" 4
  271. .IX Item "S"
  272. .PD 0
  273. .ie n .IP """s""" 4
  274. .el .IP "\f(CWs\fR" 4
  275. .IX Item "s"
  276. .PD
  277. The symbol is in an uninitialized or zero-initialized data section
  278. for small objects.
  279. .ie n .IP """T""" 4
  280. .el .IP "\f(CWT\fR" 4
  281. .IX Item "T"
  282. .PD 0
  283. .ie n .IP """t""" 4
  284. .el .IP "\f(CWt\fR" 4
  285. .IX Item "t"
  286. .PD
  287. The symbol is in the text (code) section.
  288. .ie n .IP """U""" 4
  289. .el .IP "\f(CWU\fR" 4
  290. .IX Item "U"
  291. The symbol is undefined.
  292. .ie n .IP """u""" 4
  293. .el .IP "\f(CWu\fR" 4
  294. .IX Item "u"
  295. The symbol is a unique global symbol. This is a \s-1GNU\s0 extension to the
  296. standard set of \s-1ELF\s0 symbol bindings. For such a symbol the dynamic linker
  297. will make sure that in the entire process there is just one symbol with
  298. this name and type in use.
  299. .ie n .IP """V""" 4
  300. .el .IP "\f(CWV\fR" 4
  301. .IX Item "V"
  302. .PD 0
  303. .ie n .IP """v""" 4
  304. .el .IP "\f(CWv\fR" 4
  305. .IX Item "v"
  306. .PD
  307. The symbol is a weak object. When a weak defined symbol is linked with
  308. a normal defined symbol, the normal defined symbol is used with no error.
  309. When a weak undefined symbol is linked and the symbol is not defined,
  310. the value of the weak symbol becomes zero with no error. On some
  311. systems, uppercase indicates that a default value has been specified.
  312. .ie n .IP """W""" 4
  313. .el .IP "\f(CWW\fR" 4
  314. .IX Item "W"
  315. .PD 0
  316. .ie n .IP """w""" 4
  317. .el .IP "\f(CWw\fR" 4
  318. .IX Item "w"
  319. .PD
  320. The symbol is a weak symbol that has not been specifically tagged as a
  321. weak object symbol. When a weak defined symbol is linked with a normal
  322. defined symbol, the normal defined symbol is used with no error.
  323. When a weak undefined symbol is linked and the symbol is not defined,
  324. the value of the symbol is determined in a system-specific manner without
  325. error. On some systems, uppercase indicates that a default value has been
  326. specified.
  327. .ie n .IP """\-""" 4
  328. .el .IP "\f(CW\-\fR" 4
  329. .IX Item "-"
  330. The symbol is a stabs symbol in an a.out object file. In this case, the
  331. next values printed are the stabs other field, the stabs desc field, and
  332. the stab type. Stabs symbols are used to hold debugging information.
  333. .ie n .IP """?""" 4
  334. .el .IP "\f(CW?\fR" 4
  335. .IX Item "?"
  336. The symbol type is unknown, or object file format specific.
  337. .RE
  338. .RS 4
  339. .RE
  340. .IP "\(bu" 4
  341. The symbol name. If a symbol has version information associated with it,
  342. then the version information is displayed as well. If the versioned
  343. symbol is undefined or hidden from linker, the version string is displayed
  344. as a suffix to the symbol name, preceded by an @ character. For example
  345. \&\fBfoo@VER_1\fR. If the version is the default version to be used when
  346. resolving unversioned references to the symbol, then it is displayed as a
  347. suffix preceded by two @ characters. For example \fBfoo@@VER_2\fR.
  348. .SH "OPTIONS"
  349. .IX Header "OPTIONS"
  350. The long and short forms of options, shown here as alternatives, are
  351. equivalent.
  352. .IP "\fB\-A\fR" 4
  353. .IX Item "-A"
  354. .PD 0
  355. .IP "\fB\-o\fR" 4
  356. .IX Item "-o"
  357. .IP "\fB\-\-print\-file\-name\fR" 4
  358. .IX Item "--print-file-name"
  359. .PD
  360. Precede each symbol by the name of the input file (or archive member)
  361. in which it was found, rather than identifying the input file once only,
  362. before all of its symbols.
  363. .IP "\fB\-a\fR" 4
  364. .IX Item "-a"
  365. .PD 0
  366. .IP "\fB\-\-debug\-syms\fR" 4
  367. .IX Item "--debug-syms"
  368. .PD
  369. Display all symbols, even debugger-only symbols; normally these are not
  370. listed.
  371. .IP "\fB\-B\fR" 4
  372. .IX Item "-B"
  373. The same as \fB\-\-format=bsd\fR (for compatibility with the \s-1MIPS\s0 \fBnm\fR).
  374. .IP "\fB\-C\fR" 4
  375. .IX Item "-C"
  376. .PD 0
  377. .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
  378. .IX Item "--demangle[=style]"
  379. .PD
  380. Decode (\fIdemangle\fR) low-level symbol names into user-level names.
  381. Besides removing any initial underscore prepended by the system, this
  382. makes \*(C+ function names readable. Different compilers have different
  383. mangling styles. The optional demangling style argument can be used to
  384. choose an appropriate demangling style for your compiler.
  385. .IP "\fB\-\-no\-demangle\fR" 4
  386. .IX Item "--no-demangle"
  387. Do not demangle low-level symbol names. This is the default.
  388. .IP "\fB\-\-recurse\-limit\fR" 4
  389. .IX Item "--recurse-limit"
  390. .PD 0
  391. .IP "\fB\-\-no\-recurse\-limit\fR" 4
  392. .IX Item "--no-recurse-limit"
  393. .IP "\fB\-\-recursion\-limit\fR" 4
  394. .IX Item "--recursion-limit"
  395. .IP "\fB\-\-no\-recursion\-limit\fR" 4
  396. .IX Item "--no-recursion-limit"
  397. .PD
  398. Enables or disables a limit on the amount of recursion performed
  399. whilst demangling strings. Since the name mangling formats allow for
  400. an infinite level of recursion it is possible to create strings whose
  401. decoding will exhaust the amount of stack space available on the host
  402. machine, triggering a memory fault. The limit tries to prevent this
  403. from happening by restricting recursion to 2048 levels of nesting.
  404. .Sp
  405. The default is for this limit to be enabled, but disabling it may be
  406. necessary in order to demangle truly complicated names. Note however
  407. that if the recursion limit is disabled then stack exhaustion is
  408. possible and any bug reports about such an event will be rejected.
  409. .IP "\fB\-D\fR" 4
  410. .IX Item "-D"
  411. .PD 0
  412. .IP "\fB\-\-dynamic\fR" 4
  413. .IX Item "--dynamic"
  414. .PD
  415. Display the dynamic symbols rather than the normal symbols. This is
  416. only meaningful for dynamic objects, such as certain types of shared
  417. libraries.
  418. .IP "\fB\-f\fR \fIformat\fR" 4
  419. .IX Item "-f format"
  420. .PD 0
  421. .IP "\fB\-\-format=\fR\fIformat\fR" 4
  422. .IX Item "--format=format"
  423. .PD
  424. Use the output format \fIformat\fR, which can be \f(CW\*(C`bsd\*(C'\fR,
  425. \&\f(CW\*(C`sysv\*(C'\fR, or \f(CW\*(C`posix\*(C'\fR. The default is \f(CW\*(C`bsd\*(C'\fR.
  426. Only the first character of \fIformat\fR is significant; it can be
  427. either upper or lower case.
  428. .IP "\fB\-g\fR" 4
  429. .IX Item "-g"
  430. .PD 0
  431. .IP "\fB\-\-extern\-only\fR" 4
  432. .IX Item "--extern-only"
  433. .PD
  434. Display only external symbols.
  435. .IP "\fB\-h\fR" 4
  436. .IX Item "-h"
  437. .PD 0
  438. .IP "\fB\-\-help\fR" 4
  439. .IX Item "--help"
  440. .PD
  441. Show a summary of the options to \fBnm\fR and exit.
  442. .IP "\fB\-\-ifunc\-chars=\fR\fI\s-1CHARS\s0\fR" 4
  443. .IX Item "--ifunc-chars=CHARS"
  444. When display \s-1GNU\s0 indirect function symbols \fBnm\fR will default
  445. to using the \f(CW\*(C`i\*(C'\fR character for both local indirect functions and
  446. global indirect functions. The \fB\-\-ifunc\-chars\fR option allows
  447. the user to specify a string containing one or two characters. The
  448. first character will be used for global indirect function symbols and
  449. the second character, if present, will be used for local indirect
  450. function symbols.
  451. .IP "\fB\-l\fR" 4
  452. .IX Item "-l"
  453. .PD 0
  454. .IP "\fB\-\-line\-numbers\fR" 4
  455. .IX Item "--line-numbers"
  456. .PD
  457. For each symbol, use debugging information to try to find a filename and
  458. line number. For a defined symbol, look for the line number of the
  459. address of the symbol. For an undefined symbol, look for the line
  460. number of a relocation entry which refers to the symbol. If line number
  461. information can be found, print it after the other symbol information.
  462. .IP "\fB\-\-inlines\fR" 4
  463. .IX Item "--inlines"
  464. When option \fB\-l\fR is active, if the address belongs to a
  465. function that was inlined, then this option causes the source
  466. information for all enclosing scopes back to the first non-inlined
  467. function to be printed as well. For example, if \f(CW\*(C`main\*(C'\fR inlines
  468. \&\f(CW\*(C`callee1\*(C'\fR which inlines \f(CW\*(C`callee2\*(C'\fR, and address is from
  469. \&\f(CW\*(C`callee2\*(C'\fR, the source information for \f(CW\*(C`callee1\*(C'\fR and \f(CW\*(C`main\*(C'\fR
  470. will also be printed.
  471. .IP "\fB\-n\fR" 4
  472. .IX Item "-n"
  473. .PD 0
  474. .IP "\fB\-v\fR" 4
  475. .IX Item "-v"
  476. .IP "\fB\-\-numeric\-sort\fR" 4
  477. .IX Item "--numeric-sort"
  478. .PD
  479. Sort symbols numerically by their addresses, rather than alphabetically
  480. by their names.
  481. .IP "\fB\-p\fR" 4
  482. .IX Item "-p"
  483. .PD 0
  484. .IP "\fB\-\-no\-sort\fR" 4
  485. .IX Item "--no-sort"
  486. .PD
  487. Do not bother to sort the symbols in any order; print them in the order
  488. encountered.
  489. .IP "\fB\-P\fR" 4
  490. .IX Item "-P"
  491. .PD 0
  492. .IP "\fB\-\-portability\fR" 4
  493. .IX Item "--portability"
  494. .PD
  495. Use the \s-1POSIX.2\s0 standard output format instead of the default format.
  496. Equivalent to \fB\-f posix\fR.
  497. .IP "\fB\-r\fR" 4
  498. .IX Item "-r"
  499. .PD 0
  500. .IP "\fB\-\-reverse\-sort\fR" 4
  501. .IX Item "--reverse-sort"
  502. .PD
  503. Reverse the order of the sort (whether numeric or alphabetic); let the
  504. last come first.
  505. .IP "\fB\-S\fR" 4
  506. .IX Item "-S"
  507. .PD 0
  508. .IP "\fB\-\-print\-size\fR" 4
  509. .IX Item "--print-size"
  510. .PD
  511. Print both value and size of defined symbols for the \f(CW\*(C`bsd\*(C'\fR output style.
  512. This option has no effect for object formats that do not record symbol
  513. sizes, unless \fB\-\-size\-sort\fR is also used in which case a
  514. calculated size is displayed.
  515. .IP "\fB\-s\fR" 4
  516. .IX Item "-s"
  517. .PD 0
  518. .IP "\fB\-\-print\-armap\fR" 4
  519. .IX Item "--print-armap"
  520. .PD
  521. When listing symbols from archive members, include the index: a mapping
  522. (stored in the archive by \fBar\fR or \fBranlib\fR) of which modules
  523. contain definitions for which names.
  524. .IP "\fB\-t\fR \fIradix\fR" 4
  525. .IX Item "-t radix"
  526. .PD 0
  527. .IP "\fB\-\-radix=\fR\fIradix\fR" 4
  528. .IX Item "--radix=radix"
  529. .PD
  530. Use \fIradix\fR as the radix for printing the symbol values. It must be
  531. \&\fBd\fR for decimal, \fBo\fR for octal, or \fBx\fR for hexadecimal.
  532. .IP "\fB\-u\fR" 4
  533. .IX Item "-u"
  534. .PD 0
  535. .IP "\fB\-\-undefined\-only\fR" 4
  536. .IX Item "--undefined-only"
  537. .PD
  538. Display only undefined symbols (those external to each object file).
  539. .IP "\fB\-V\fR" 4
  540. .IX Item "-V"
  541. .PD 0
  542. .IP "\fB\-\-version\fR" 4
  543. .IX Item "--version"
  544. .PD
  545. Show the version number of \fBnm\fR and exit.
  546. .IP "\fB\-X\fR" 4
  547. .IX Item "-X"
  548. This option is ignored for compatibility with the \s-1AIX\s0 version of
  549. \&\fBnm\fR. It takes one parameter which must be the string
  550. \&\fB32_64\fR. The default mode of \s-1AIX\s0 \fBnm\fR corresponds
  551. to \fB\-X 32\fR, which is not supported by \s-1GNU\s0 \fBnm\fR.
  552. .IP "\fB\-\-defined\-only\fR" 4
  553. .IX Item "--defined-only"
  554. Display only defined symbols for each object file.
  555. .IP "\fB\-\-plugin\fR \fIname\fR" 4
  556. .IX Item "--plugin name"
  557. Load the plugin called \fIname\fR to add support for extra target
  558. types. This option is only available if the toolchain has been built
  559. with plugin support enabled.
  560. .Sp
  561. If \fB\-\-plugin\fR is not provided, but plugin support has been
  562. enabled then \fBnm\fR iterates over the files in
  563. \&\fI${libdir}/bfd\-plugins\fR in alphabetic order and the first
  564. plugin that claims the object in question is used.
  565. .Sp
  566. Please note that this plugin search directory is \fInot\fR the one
  567. used by \fBld\fR's \fB\-plugin\fR option. In order to make
  568. \&\fBnm\fR use the linker plugin it must be copied into the
  569. \&\fI${libdir}/bfd\-plugins\fR directory. For \s-1GCC\s0 based compilations
  570. the linker plugin is called \fIliblto_plugin.so.0.0.0\fR. For Clang
  571. based compilations it is called \fILLVMgold.so\fR. The \s-1GCC\s0 plugin
  572. is always backwards compatible with earlier versions, so it is
  573. sufficient to just copy the newest one.
  574. .IP "\fB\-\-size\-sort\fR" 4
  575. .IX Item "--size-sort"
  576. Sort symbols by size. For \s-1ELF\s0 objects symbol sizes are read from the
  577. \&\s-1ELF,\s0 for other object types the symbol sizes are computed as the
  578. difference between the value of the symbol and the value of the symbol
  579. with the next higher value. If the \f(CW\*(C`bsd\*(C'\fR output format is used
  580. the size of the symbol is printed, rather than the value, and
  581. \&\fB\-S\fR must be used in order both size and value to be printed.
  582. .IP "\fB\-\-special\-syms\fR" 4
  583. .IX Item "--special-syms"
  584. Display symbols which have a target-specific special meaning. These
  585. symbols are usually used by the target for some special processing and
  586. are not normally helpful when included in the normal symbol lists.
  587. For example for \s-1ARM\s0 targets this option would skip the mapping symbols
  588. used to mark transitions between \s-1ARM\s0 code, \s-1THUMB\s0 code and data.
  589. .IP "\fB\-\-synthetic\fR" 4
  590. .IX Item "--synthetic"
  591. Include synthetic symbols in the output. These are special symbols
  592. created by the linker for various purposes. They are not shown by
  593. default since they are not part of the binary's original source code.
  594. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  595. .IX Item "--target=bfdname"
  596. Specify an object code format other than your system's default format.
  597. .IP "\fB@\fR\fIfile\fR" 4
  598. .IX Item "@file"
  599. Read command-line options from \fIfile\fR. The options read are
  600. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  601. does not exist, or cannot be read, then the option will be treated
  602. literally, and not removed.
  603. .Sp
  604. Options in \fIfile\fR are separated by whitespace. A whitespace
  605. character may be included in an option by surrounding the entire
  606. option in either single or double quotes. Any character (including a
  607. backslash) may be included by prefixing the character to be included
  608. with a backslash. The \fIfile\fR may itself contain additional
  609. @\fIfile\fR options; any such options will be processed recursively.
  610. .SH "SEE ALSO"
  611. .IX Header "SEE ALSO"
  612. \&\fIar\fR\|(1), \fIobjdump\fR\|(1), \fIranlib\fR\|(1), and the Info entries for \fIbinutils\fR.
  613. .SH "COPYRIGHT"
  614. .IX Header "COPYRIGHT"
  615. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  616. .PP
  617. Permission is granted to copy, distribute and/or modify this document
  618. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  619. or any later version published by the Free Software Foundation;
  620. with no Invariant Sections, with no Front-Cover Texts, and with no
  621. Back-Cover Texts. A copy of the license is included in the
  622. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".