aarch64-none-linux-gnu-strip.1 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  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 "STRIP 1"
  132. .TH STRIP 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. strip \- discard symbols and other data from object files
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. strip [\fB\-F\fR \fIbfdname\fR |\fB\-\-target=\fR\fIbfdname\fR]
  142. [\fB\-I\fR \fIbfdname\fR |\fB\-\-input\-target=\fR\fIbfdname\fR]
  143. [\fB\-O\fR \fIbfdname\fR |\fB\-\-output\-target=\fR\fIbfdname\fR]
  144. [\fB\-s\fR|\fB\-\-strip\-all\fR]
  145. [\fB\-S\fR|\fB\-g\fR|\fB\-d\fR|\fB\-\-strip\-debug\fR]
  146. [\fB\-\-strip\-dwo\fR]
  147. [\fB\-K\fR \fIsymbolname\fR|\fB\-\-keep\-symbol=\fR\fIsymbolname\fR]
  148. [\fB\-M\fR|\fB\-\-merge\-notes\fR][\fB\-\-no\-merge\-notes\fR]
  149. [\fB\-N\fR \fIsymbolname\fR |\fB\-\-strip\-symbol=\fR\fIsymbolname\fR]
  150. [\fB\-w\fR|\fB\-\-wildcard\fR]
  151. [\fB\-x\fR|\fB\-\-discard\-all\fR] [\fB\-X\fR |\fB\-\-discard\-locals\fR]
  152. [\fB\-R\fR \fIsectionname\fR |\fB\-\-remove\-section=\fR\fIsectionname\fR]
  153. [\fB\-\-keep\-section=\fR\fIsectionpattern\fR]
  154. [\fB\-\-remove\-relocations=\fR\fIsectionpattern\fR]
  155. [\fB\-o\fR \fIfile\fR] [\fB\-p\fR|\fB\-\-preserve\-dates\fR]
  156. [\fB\-D\fR|\fB\-\-enable\-deterministic\-archives\fR]
  157. [\fB\-U\fR|\fB\-\-disable\-deterministic\-archives\fR]
  158. [\fB\-\-keep\-file\-symbols\fR]
  159. [\fB\-\-only\-keep\-debug\fR]
  160. [\fB\-v\fR |\fB\-\-verbose\fR] [\fB\-V\fR|\fB\-\-version\fR]
  161. [\fB\-\-help\fR] [\fB\-\-info\fR]
  162. \fIobjfile\fR...
  163. .SH "DESCRIPTION"
  164. .IX Header "DESCRIPTION"
  165. \&\s-1GNU\s0 \fBstrip\fR discards all symbols from object files
  166. \&\fIobjfile\fR. The list of object files may include archives.
  167. At least one object file must be given.
  168. .PP
  169. \&\fBstrip\fR modifies the files named in its argument,
  170. rather than writing modified copies under different names.
  171. .SH "OPTIONS"
  172. .IX Header "OPTIONS"
  173. .IP "\fB\-F\fR \fIbfdname\fR" 4
  174. .IX Item "-F bfdname"
  175. .PD 0
  176. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  177. .IX Item "--target=bfdname"
  178. .PD
  179. Treat the original \fIobjfile\fR as a file with the object
  180. code format \fIbfdname\fR, and rewrite it in the same format.
  181. .IP "\fB\-\-help\fR" 4
  182. .IX Item "--help"
  183. Show a summary of the options to \fBstrip\fR and exit.
  184. .IP "\fB\-\-info\fR" 4
  185. .IX Item "--info"
  186. Display a list showing all architectures and object formats available.
  187. .IP "\fB\-I\fR \fIbfdname\fR" 4
  188. .IX Item "-I bfdname"
  189. .PD 0
  190. .IP "\fB\-\-input\-target=\fR\fIbfdname\fR" 4
  191. .IX Item "--input-target=bfdname"
  192. .PD
  193. Treat the original \fIobjfile\fR as a file with the object
  194. code format \fIbfdname\fR.
  195. .IP "\fB\-O\fR \fIbfdname\fR" 4
  196. .IX Item "-O bfdname"
  197. .PD 0
  198. .IP "\fB\-\-output\-target=\fR\fIbfdname\fR" 4
  199. .IX Item "--output-target=bfdname"
  200. .PD
  201. Replace \fIobjfile\fR with a file in the output format \fIbfdname\fR.
  202. .IP "\fB\-R\fR \fIsectionname\fR" 4
  203. .IX Item "-R sectionname"
  204. .PD 0
  205. .IP "\fB\-\-remove\-section=\fR\fIsectionname\fR" 4
  206. .IX Item "--remove-section=sectionname"
  207. .PD
  208. Remove any section named \fIsectionname\fR from the output file, in
  209. addition to whatever sections would otherwise be removed. This
  210. option may be given more than once. Note that using this option
  211. inappropriately may make the output file unusable. The wildcard
  212. character \fB*\fR may be given at the end of \fIsectionname\fR. If
  213. so, then any section starting with \fIsectionname\fR will be removed.
  214. .Sp
  215. If the first character of \fIsectionpattern\fR is the exclamation
  216. point (!) then matching sections will not be removed even if an
  217. earlier use of \fB\-\-remove\-section\fR on the same command line
  218. would otherwise remove it. For example:
  219. .Sp
  220. .Vb 1
  221. \& \-\-remove\-section=.text.* \-\-remove\-section=!.text.foo
  222. .Ve
  223. .Sp
  224. will remove all sections matching the pattern '.text.*', but will not
  225. remove the section '.text.foo'.
  226. .IP "\fB\-\-keep\-section=\fR\fIsectionpattern\fR" 4
  227. .IX Item "--keep-section=sectionpattern"
  228. When removing sections from the output file, keep sections that match
  229. \&\fIsectionpattern\fR.
  230. .IP "\fB\-\-remove\-relocations=\fR\fIsectionpattern\fR" 4
  231. .IX Item "--remove-relocations=sectionpattern"
  232. Remove relocations from the output file for any section matching
  233. \&\fIsectionpattern\fR. This option may be given more than once. Note
  234. that using this option inappropriately may make the output file
  235. unusable. Wildcard characters are accepted in \fIsectionpattern\fR.
  236. For example:
  237. .Sp
  238. .Vb 1
  239. \& \-\-remove\-relocations=.text.*
  240. .Ve
  241. .Sp
  242. will remove the relocations for all sections matching the patter
  243. \&'.text.*'.
  244. .Sp
  245. If the first character of \fIsectionpattern\fR is the exclamation
  246. point (!) then matching sections will not have their relocation
  247. removed even if an earlier use of \fB\-\-remove\-relocations\fR on the
  248. same command line would otherwise cause the relocations to be removed.
  249. For example:
  250. .Sp
  251. .Vb 1
  252. \& \-\-remove\-relocations=.text.* \-\-remove\-relocations=!.text.foo
  253. .Ve
  254. .Sp
  255. will remove all relocations for sections matching the pattern
  256. \&'.text.*', but will not remove relocations for the section
  257. \&'.text.foo'.
  258. .IP "\fB\-s\fR" 4
  259. .IX Item "-s"
  260. .PD 0
  261. .IP "\fB\-\-strip\-all\fR" 4
  262. .IX Item "--strip-all"
  263. .PD
  264. Remove all symbols.
  265. .IP "\fB\-g\fR" 4
  266. .IX Item "-g"
  267. .PD 0
  268. .IP "\fB\-S\fR" 4
  269. .IX Item "-S"
  270. .IP "\fB\-d\fR" 4
  271. .IX Item "-d"
  272. .IP "\fB\-\-strip\-debug\fR" 4
  273. .IX Item "--strip-debug"
  274. .PD
  275. Remove debugging symbols only.
  276. .IP "\fB\-\-strip\-dwo\fR" 4
  277. .IX Item "--strip-dwo"
  278. Remove the contents of all \s-1DWARF\s0 .dwo sections, leaving the
  279. remaining debugging sections and all symbols intact.
  280. See the description of this option in the \fBobjcopy\fR section
  281. for more information.
  282. .IP "\fB\-\-strip\-unneeded\fR" 4
  283. .IX Item "--strip-unneeded"
  284. Remove all symbols that are not needed for relocation processing in
  285. addition to debugging symbols and sections stripped by
  286. \&\fB\-\-strip\-debug\fR.
  287. .IP "\fB\-K\fR \fIsymbolname\fR" 4
  288. .IX Item "-K symbolname"
  289. .PD 0
  290. .IP "\fB\-\-keep\-symbol=\fR\fIsymbolname\fR" 4
  291. .IX Item "--keep-symbol=symbolname"
  292. .PD
  293. When stripping symbols, keep symbol \fIsymbolname\fR even if it would
  294. normally be stripped. This option may be given more than once.
  295. .IP "\fB\-M\fR" 4
  296. .IX Item "-M"
  297. .PD 0
  298. .IP "\fB\-\-merge\-notes\fR" 4
  299. .IX Item "--merge-notes"
  300. .IP "\fB\-\-no\-merge\-notes\fR" 4
  301. .IX Item "--no-merge-notes"
  302. .PD
  303. For \s-1ELF\s0 files, attempt (or do not attempt) to reduce the size of any
  304. \&\s-1SHT_NOTE\s0 type sections by removing duplicate notes. The default is to
  305. attempt this reduction unless stripping debug or \s-1DWO\s0 information.
  306. .IP "\fB\-N\fR \fIsymbolname\fR" 4
  307. .IX Item "-N symbolname"
  308. .PD 0
  309. .IP "\fB\-\-strip\-symbol=\fR\fIsymbolname\fR" 4
  310. .IX Item "--strip-symbol=symbolname"
  311. .PD
  312. Remove symbol \fIsymbolname\fR from the source file. This option may be
  313. given more than once, and may be combined with strip options other than
  314. \&\fB\-K\fR.
  315. .IP "\fB\-o\fR \fIfile\fR" 4
  316. .IX Item "-o file"
  317. Put the stripped output in \fIfile\fR, rather than replacing the
  318. existing file. When this argument is used, only one \fIobjfile\fR
  319. argument may be specified.
  320. .IP "\fB\-p\fR" 4
  321. .IX Item "-p"
  322. .PD 0
  323. .IP "\fB\-\-preserve\-dates\fR" 4
  324. .IX Item "--preserve-dates"
  325. .PD
  326. Preserve the access and modification dates of the file.
  327. .IP "\fB\-D\fR" 4
  328. .IX Item "-D"
  329. .PD 0
  330. .IP "\fB\-\-enable\-deterministic\-archives\fR" 4
  331. .IX Item "--enable-deterministic-archives"
  332. .PD
  333. Operate in \fIdeterministic\fR mode. When copying archive members
  334. and writing the archive index, use zero for UIDs, GIDs, timestamps,
  335. and use consistent file modes for all files.
  336. .Sp
  337. If \fIbinutils\fR was configured with
  338. \&\fB\-\-enable\-deterministic\-archives\fR, then this mode is on by default.
  339. It can be disabled with the \fB\-U\fR option, below.
  340. .IP "\fB\-U\fR" 4
  341. .IX Item "-U"
  342. .PD 0
  343. .IP "\fB\-\-disable\-deterministic\-archives\fR" 4
  344. .IX Item "--disable-deterministic-archives"
  345. .PD
  346. Do \fInot\fR operate in \fIdeterministic\fR mode. This is the
  347. inverse of the \fB\-D\fR option, above: when copying archive members
  348. and writing the archive index, use their actual \s-1UID, GID,\s0 timestamp,
  349. and file mode values.
  350. .Sp
  351. This is the default unless \fIbinutils\fR was configured with
  352. \&\fB\-\-enable\-deterministic\-archives\fR.
  353. .IP "\fB\-w\fR" 4
  354. .IX Item "-w"
  355. .PD 0
  356. .IP "\fB\-\-wildcard\fR" 4
  357. .IX Item "--wildcard"
  358. .PD
  359. Permit regular expressions in \fIsymbolname\fRs used in other command
  360. line options. The question mark (?), asterisk (*), backslash (\e) and
  361. square brackets ([]) operators can be used anywhere in the symbol
  362. name. If the first character of the symbol name is the exclamation
  363. point (!) then the sense of the switch is reversed for that symbol.
  364. For example:
  365. .Sp
  366. .Vb 1
  367. \& \-w \-K !foo \-K fo*
  368. .Ve
  369. .Sp
  370. would cause strip to only keep symbols that start with the letters
  371. \&\*(L"fo\*(R", but to discard the symbol \*(L"foo\*(R".
  372. .IP "\fB\-x\fR" 4
  373. .IX Item "-x"
  374. .PD 0
  375. .IP "\fB\-\-discard\-all\fR" 4
  376. .IX Item "--discard-all"
  377. .PD
  378. Remove non-global symbols.
  379. .IP "\fB\-X\fR" 4
  380. .IX Item "-X"
  381. .PD 0
  382. .IP "\fB\-\-discard\-locals\fR" 4
  383. .IX Item "--discard-locals"
  384. .PD
  385. Remove compiler-generated local symbols.
  386. (These usually start with \fBL\fR or \fB.\fR.)
  387. .IP "\fB\-\-keep\-file\-symbols\fR" 4
  388. .IX Item "--keep-file-symbols"
  389. When stripping a file, perhaps with \fB\-\-strip\-debug\fR or
  390. \&\fB\-\-strip\-unneeded\fR, retain any symbols specifying source file names,
  391. which would otherwise get stripped.
  392. .IP "\fB\-\-only\-keep\-debug\fR" 4
  393. .IX Item "--only-keep-debug"
  394. Strip a file, emptying the contents of any sections that would not be
  395. stripped by \fB\-\-strip\-debug\fR and leaving the debugging sections
  396. intact. In \s-1ELF\s0 files, this preserves all the note sections in the
  397. output as well.
  398. .Sp
  399. Note \- the section headers of the stripped sections are preserved,
  400. including their sizes, but the contents of the section are discarded.
  401. The section headers are preserved so that other tools can match up the
  402. debuginfo file with the real executable, even if that executable has
  403. been relocated to a different address space.
  404. .Sp
  405. The intention is that this option will be used in conjunction with
  406. \&\fB\-\-add\-gnu\-debuglink\fR to create a two part executable. One a
  407. stripped binary which will occupy less space in \s-1RAM\s0 and in a
  408. distribution and the second a debugging information file which is only
  409. needed if debugging abilities are required. The suggested procedure
  410. to create these files is as follows:
  411. .RS 4
  412. .IP "1.<Link the executable as normal. Assuming that it is called>" 4
  413. .IX Item "1.<Link the executable as normal. Assuming that it is called>"
  414. \&\f(CW\*(C`foo\*(C'\fR then...
  415. .ie n .IP "1.<Run ""objcopy \-\-only\-keep\-debug foo foo.dbg"" to>" 4
  416. .el .IP "1.<Run \f(CWobjcopy \-\-only\-keep\-debug foo foo.dbg\fR to>" 4
  417. .IX Item "1.<Run objcopy --only-keep-debug foo foo.dbg to>"
  418. create a file containing the debugging info.
  419. .ie n .IP "1.<Run ""objcopy \-\-strip\-debug foo"" to create a>" 4
  420. .el .IP "1.<Run \f(CWobjcopy \-\-strip\-debug foo\fR to create a>" 4
  421. .IX Item "1.<Run objcopy --strip-debug foo to create a>"
  422. stripped executable.
  423. .ie n .IP "1.<Run ""objcopy \-\-add\-gnu\-debuglink=foo.dbg foo"">" 4
  424. .el .IP "1.<Run \f(CWobjcopy \-\-add\-gnu\-debuglink=foo.dbg foo\fR>" 4
  425. .IX Item "1.<Run objcopy --add-gnu-debuglink=foo.dbg foo>"
  426. to add a link to the debugging info into the stripped executable.
  427. .RE
  428. .RS 4
  429. .Sp
  430. Note\-\-\-the choice of \f(CW\*(C`.dbg\*(C'\fR as an extension for the debug info
  431. file is arbitrary. Also the \f(CW\*(C`\-\-only\-keep\-debug\*(C'\fR step is
  432. optional. You could instead do this:
  433. .IP "1.<Link the executable as normal.>" 4
  434. .IX Item "1.<Link the executable as normal.>"
  435. .PD 0
  436. .ie n .IP "1.<Copy ""foo"" to ""foo.full"">" 4
  437. .el .IP "1.<Copy \f(CWfoo\fR to \f(CWfoo.full\fR>" 4
  438. .IX Item "1.<Copy foo to foo.full>"
  439. .ie n .IP "1.<Run ""strip \-\-strip\-debug foo"">" 4
  440. .el .IP "1.<Run \f(CWstrip \-\-strip\-debug foo\fR>" 4
  441. .IX Item "1.<Run strip --strip-debug foo>"
  442. .ie n .IP "1.<Run ""objcopy \-\-add\-gnu\-debuglink=foo.full foo"">" 4
  443. .el .IP "1.<Run \f(CWobjcopy \-\-add\-gnu\-debuglink=foo.full foo\fR>" 4
  444. .IX Item "1.<Run objcopy --add-gnu-debuglink=foo.full foo>"
  445. .RE
  446. .RS 4
  447. .PD
  448. .Sp
  449. i.e., the file pointed to by the \fB\-\-add\-gnu\-debuglink\fR can be the
  450. full executable. It does not have to be a file created by the
  451. \&\fB\-\-only\-keep\-debug\fR switch.
  452. .Sp
  453. Note\-\-\-this switch is only intended for use on fully linked files. It
  454. does not make sense to use it on object files where the debugging
  455. information may be incomplete. Besides the gnu_debuglink feature
  456. currently only supports the presence of one filename containing
  457. debugging information, not multiple filenames on a one-per-object-file
  458. basis.
  459. .RE
  460. .IP "\fB\-V\fR" 4
  461. .IX Item "-V"
  462. .PD 0
  463. .IP "\fB\-\-version\fR" 4
  464. .IX Item "--version"
  465. .PD
  466. Show the version number for \fBstrip\fR.
  467. .IP "\fB\-v\fR" 4
  468. .IX Item "-v"
  469. .PD 0
  470. .IP "\fB\-\-verbose\fR" 4
  471. .IX Item "--verbose"
  472. .PD
  473. Verbose output: list all object files modified. In the case of
  474. archives, \fBstrip \-v\fR lists all members of the archive.
  475. .IP "\fB@\fR\fIfile\fR" 4
  476. .IX Item "@file"
  477. Read command-line options from \fIfile\fR. The options read are
  478. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  479. does not exist, or cannot be read, then the option will be treated
  480. literally, and not removed.
  481. .Sp
  482. Options in \fIfile\fR are separated by whitespace. A whitespace
  483. character may be included in an option by surrounding the entire
  484. option in either single or double quotes. Any character (including a
  485. backslash) may be included by prefixing the character to be included
  486. with a backslash. The \fIfile\fR may itself contain additional
  487. @\fIfile\fR options; any such options will be processed recursively.
  488. .SH "SEE ALSO"
  489. .IX Header "SEE ALSO"
  490. the Info entries for \fIbinutils\fR.
  491. .SH "COPYRIGHT"
  492. .IX Header "COPYRIGHT"
  493. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  494. .PP
  495. Permission is granted to copy, distribute and/or modify this document
  496. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  497. or any later version published by the Free Software Foundation;
  498. with no Invariant Sections, with no Front-Cover Texts, and with no
  499. Back-Cover Texts. A copy of the license is included in the
  500. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".