strip

STRIP(1)                     GNU Development Tools                    STRIP(1)



å称
       strip - ãªãã¸ã§ã¯ããã¡ã¤ã«ããã·ã³ãã«ã®åé¤

æ¸å¼
       strip [-F bfdname --target=bfdname]
             [-I bfdname --input-target=bfdname]
             [-O bfdname --output-target=bfdname]
             [-s--strip-all]
             [-S-g-d--strip-debug]
             [-K symbolname --keep-symbol=symbolname]
             [-N symbolname --strip-symbol=symbolname]
             [-w--wildcard]
             [-x--discard-all] [-X --discard-locals]
             [-R sectionname --remove-section=sectionname]
             [-o file] [-p--preserve-dates]
             [--only-keep-debug]
             [-v --verbose] [-V--version]
             [--help] [--info]
             objfile...

解説
       GNU strip ã¯ãªãã¸ã§ã¯ããã¡ã¤ã« objfile ããã·ã³ãã«ããã¹ã¦åé¤ãã¾ãã
       ãªãã¸ã§ã¯ããã¡ã¤ã«ã®ãªã¹ãã«ã¢ã¼ã«ã¤ããå«ã¾ãã¦ãã¦ãæ§ãã¾ããã
       å°ãªãã¨ãã²ã¨ã¤ã®ãªãã¸ã§ã¯ããã¡ã¤ã«ãå¿è¦ã§ãã

       strip ã¯å¤æ´ãããã³ãã¼ãå¥åã§ä½æããã å¼æ°ã§æå®ãããã¡ã¤ã«ãã®ãã®ãå¤æ´ãã¾ãã

ãªãã·ã§ã³
       -F bfdname
       --target=bfdname
           ãªãªã¸ãã«ã® objfile ã bfdname
           ãªãã¸ã§ã¯ãã³ã¼ãå½¢å¼ã®ãã¡ã¤ã«ã¨ãã¦æ±ãã ããã¨åãå½¢å¼ã§ä¸æ¸ããã¾ãã

       --help
           strip ã®ãªãã·ã§ã³ã®ä¸è¦§ã表示ãã¦çµäºãã¾ãã

       --info
           å©ç¨å¯è½ãªã¢ã¼ããã¯ãã£ã¨ãªãã¸ã§ã¯ãå½¢å¼ã®ãã¹ã¦ã®ä¸è¦§ã 表示ãã¾ãã

       -I bfdname
       --input-target=bfdname
           ãªãªã¸ãã«ã® objfile ã bfdname
           ãªãã¸ã§ã¯ãã³ã¼ãå½¢å¼ã®ãã¡ã¤ã«ã¨ãã¦æ±ãã¾ãã

       -O bfdname
       --output-target=bfdname
           objfile ã bfdname åºåå½¢å¼ã®ãã¡ã¤ã«ã«ç½®ãæãã¾ãã

       -R sectionname
       --remove-section=sectionname
           åºåãã¡ã¤ã«ãã sectionname ã¨ããååã®ã»ã¯ã·ã§ã³ãåé¤ãã¾ãã ãã®ãªãã·ã§ã³ã¯
           1 å以ä¸ä½¿ããã¨ãã§ãã¾ãã
           ãã®ãªãã·ã§ã³ãä¸é©åã«ä½¿ç¨ããã¨ããªãã¸ã§ã¯ããã¡ã¤ã«ã
           使ç¨ã§ããªããªããããããªããã¨ã«æ³¨æãã¦ãã ããã

       -s
       --strip-all
           ãã¹ã¦ã®ã·ã³ãã«ãåé¤ãã¾ãã

       -g
       -S
       -d
       --strip-debug
           ãããã®ã³ã°ã·ã³ãã«ã ããåé¤ãã¾ãã

       --strip-unneeded
           åéç½®å¦çã«ä¸å¿è¦ãªã·ã³ãã«ããã¹ã¦åé¤ãã¾ãã

       -K symbolname
       --keep-symbol=symbolname
           åãã¡ã¤ã«ã®ã·ã³ãã« symbolname ã ããä¿æãã¾ãã ãã®ãªãã·ã§ã³ã¯ 1
           å以ä¸ä½¿ããã¨ãã§ãã¾ãã

       -N symbolname
       --strip-symbol=symbolname
           åãã¡ã¤ã«ããã·ã³ãã« symbolname ãåé¤ãã¾ãã ãã®ãªãã·ã§ã³ã¯ 1
           å以ä¸ä½¿ããã¨ãã§ããã¾ã -K 以å¤ã® strip
           ã®ãªãã·ã§ã³ã¨ä½µç¨ãããã¨ãã§ãã¾ãã

       -o file
           åå¨ãããã¡ã¤ã«ãç½®ãæãã代ããã«ã strip ãããåºåã file ã«åºãã¾ãã
           ãã®å¼æ°ã使ç¨ããæã«ã¯ãobjfile å¼æ°ã¯ 1 ã¤ããæå®ã§ãã¾ããã

       -p
       --preserve-dates
           ãã¡ã¤ã«ã®ã¢ã¯ã»ã¹æå»ã¨æ´æ°æå»ãä¿åãã¾ãã

       -w
       --wildcard
           ä»ã®ã³ãã³ãè¡ãªãã·ã§ã³ã§ä½¿ç¨ããã symbolnames ã«ããã¦ã æ‐
           £è¦è¡¨ç¾ã®ä½¿ç¨ã許å¯ãã¾ãã çå符 (?)ãã¢ã¹ã¿ãªã¹ã¯ (*)ãããã¯ã¹ã©ãã·ã¥
           (\)ã è§æ¬å¼§ ([]) ã®æ¼ç®åãã·ã³ãã«åã®ã©ãã§ã使ç¨ã§ãã¾ãã
           ã·ã³ãã«åã®æåã®æåãæå符 (!) ã§ããå ´åããã®ã·ã³ãã«ã«
           対ããã¹ã¤ããã®æå³ãå転ãã¾ãã ä¾ãã°ã次ã®

                     -w -K !foo -K fo*

           ã§ã¯ãæå ``fo'' ã§å§ã¾ãã·ã³ãã«ã ããä¿æãã ã·ã³ãã« ``foo''
           ã¯ç ´æ£ãããã¨ã«ãªãã¾ãã

       -x
       --discard-all
           ã°ãã¼ãã«ã§ãªãã·ã³ãã«ãåé¤ãã¾ãã

       -X
       --discard-locals
           ã³ã³ãã¤ã©ã«ãã£ã¦çæããããã¼ã«ã«ã·ã³ãã« (ããã¯é常 L ã .  ã§å§ã¾ãã¾ãã)
           ãåé¤ãã¾ãã

       --only-keep-debug
           ãã¡ã¤ã«ããåé¤ããéã«ã--strip-debug ã«ããåé¤ããããã®ã¯
           ãã¹ã¦é¤å»ãã¤ã¤ããããã°ç¨ã»ã¯ã·ã§ã³ã¯æ®ãã¾ãã

           ãã®ãªãã·ã§ã³ã®æå³ã¯ã--add-gnu-debuglink ã¨ä¸ç·ã«ä½¿ãã 2
           ãã¼ãã®å®è¡å¯è½å½¢å¼ãçæãããã¨ã«ããã¾ãã 第ä¸ã«ãåé¤æ¸ã¿ã®ãã¤ããªã®å ãã
           RAM 容éã ããå°ãªããªããã¨ã 第äºã«ããããã°æ©è½ãå¿è¦ãªå ´åã®ã¿
           ãããã°æå ±ãã¡ã¤ã«ãå¿è¦ã¨ãªããã¨ã§ãã
           ãããã®ãã¡ã¤ã«ãçæããã«éããæ¨å¥¨ããæé ã¯æ¬¡ã®éãã§ãã

           1.<å®è¡å¯è½å½¢å¼ãæ®ééããªã³ã¯ããããã®ååã>
               "foo" ã¨ããã

           1.<"objcopy --only-keep-debug foo foo.dbg" ãå®è¡ã>
               ãããã°æå ±ãå«ããã¡ã¤ã«ãçæããã

           1.<"objcopy --strip-debug foo" ãå®è¡ã>
               ã¹ããªãããããå®è¡å¯è½å½¢å¼ãçæããã

           1.<"objcopy --add-gnu-debuglink=foo.dbg foo"ãå®è¡ã>
               ã¹ããªãããããå®è¡å¯è½å½¢å¼ã«ããããã°æå ±ã¸ã®ãªã³ã¯ã追å ããã

           注æ - ãããã°æå ±ãã¡ã¤ã«ã®æ¡å¼µåãé¸ã¶éã« ".dbg" ã 使ããã¨ã¯ä»»æã§ãã
           "--only-keep-debug" ã®ã¹ãããã
           çç¥å¯è½ã§ãã代ããã«æ¬¡ã®ããã«ãããã¨ãã§ãã¾ãã

           1.<é常éãå®è¡å¯è½å½¢å¼ããªã³ã¯ãã>
           1.<"foo" ã "foo.full"ã«ã³ãã¼ãã>
           1.<"strip --strip-debug foo"ãå®è¡ãã>
           1.<"objcopy --add-gnu-debuglink=foo.full foo

           ããã§ã--add-gnu-debuglink ã«ããæã示ããããã¡ã¤ã«ã¯
           å®å¨å®è¡å¯è½å½¢å¼ã§ãã ããã¯ã--only-keep-debug ã¹ã¤ããã«ããçæããã
           å¿è¦ã¯ããã¾ããã

       -V
       --version
           strip ã®ãã¼ã¸ã§ã³ã表示ãã¦çµäºãã¾ãã

       -v
       --verbose
           åé·ãªåºå: å¤æ´ããããã¹ã¦ã®ãªãã¸ã§ã¯ããã¡ã¤ã«ãåæãã¾ãã ã¢ã¼ã«ã¤ãã®å ´åã
           strip -v ã¯ã¢ã¼ã«ã¤ãã®ãã¹ã¦ã®ã¡ã³ããåæãã¾ãã

é¢é£é ç®
       Info ã® binutils ã¨ã³ããªã

COPYRIGHT
       Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
       2003 Free Software Foundation, Inc.

       Permission is granted to copy, distribute and/or modify this document
       under the terms of the GNU Free Documentation License, Version 1.1 or
       any later version published by the Free Software Foundation; with no
       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
       Texts.  A copy of the license is included in the section entitled ``GNU
       Free Documentation License''.



binutils-2.14.91                  2004-04-09                          STRIP(1)