objcopy

objcopy(1)                   GNU Development Tools                  objcopy(1)



åå
       objcopy - ãªãã¸ã§ã¯ããã¡ã¤ã«ã®ã³ãã¼ãå¤æãè¡ã


æ¸å¼
       objcopy
              [-F bfdname | --target=bfdname]
              [-I bfdname | --input-target=bfdname]
              [-O bfdname | --output-target=bfdname]
              [-R sectionname | --remove-section=sectionname]
              [-S | --strip-all] [-g | --strip-debug] [--strip-unneeded]
              [-K symbolname | --keep-symbol=symbolname]
              [-N symbolname | --strip-symbol=symbolname]
              [-L symbolname | --localize-symbol=symbolname]
              [-W symbolname | --weaken-symbol=symbolname]
              [-x | --discard-all] [-X | --discard-locals]
              [-b byte | --byte=byte]
              [-i interleave | --interleave=interleave]
              [-p | --preserve-dates] [--debugging] [--gap-fill=val]
              [--pad-to=address] [--set-start=val] [--adjust-start=incr]
              [--adjust-vma=incr] [--adjust-section-vma=section{=,+,-}val]
              [--adjust-warnings] [--no-adjust-warnings]
              [--set-section-flags=section=flags]
              [--add-section=sectionname=filename] [--change-leading-char]
              [--remove-leading-char] [--weaken] [-v | --verbose]
              [-V | --version] [--help] infile [outfile]

説æ
       GNU objcopy ã¦ã¼ãã£ãªãã£ã¯ãªãã¸ã§ã¯ããã¡ã¤ã«ã®å容ãå¥ãã¡ã¤ã«ã«ã³ãã¼ããã
       objcopy ã¯ãªãã¸ã§ã¯ããã¡ã¤ã«ã®èªã¿æ¸ãã« GNU BFD ã©ã¤ãã©ãªãç¨ãããããã«
       ãã£ã¦æ¸ãè¾¼ã¿åã®ãã¡ã¤ã«ã®ãªãã¸ã§ã¯ããã©ã¼ããããèªã¿è¾¼ã¿ãã¡ã¤ã«
       ã®ãã©ã¼ãããããå¤æ´ãããã¨ãã§ããã objcopy
       ã®è©³ç´°ãªåä½ã¯ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã«ãã£ã¦æ±ºå®ãããã

       objcopy ã¯å¤æãè¡ãéã«ä¸æãã¡ã¤ã«ãä½æããåä½å¾ã«ãããæ¶å»ããã objcopy å¤æä½æ¥‐
       ã¯ãã¹ã¦ BFD ã«ãã£ã¦è¡ãããããããã£ã¦ BFD ã種ãã®ãã©ã¼
       ãããã«é¢ãã¦æã£ã¦ãããã¹ã¦ã®æå ±ãå©ç¨ãããã¨ãã§ããæ示ããªãã§
       ãã»ã¨ãã©ã®ãã©ã¼ããããèªèã§ããã

       objcopy ã¯ã¿ã¼ã²ããã srec ã«æå®ãã (ã¤ã¾ã -O srec ã¨ãã) ãã¨ã«ãã£ã¦ S-
       record ãçæãããã¨ãã§ããã

       objcopy ã¯åºåã¿ã¼ã²ããã binary ã«æå®ãã (ã¤ã¾ã -O binary ã¨ãã) ãã¨ã«ãã£ã¦
       raw ãã¤ããªãã¡ã¤ã«ãçæãããã¨ãã§ããããã®
       éã«ã¯ãåºæ¬çã«ã¯å¥åãªãã¸ã§ã¯ããã¡ã¤ã«ã®å容ã®ã¡ã¢ãªãã³ããä½ãã
       ããã¡ã¢ãªãã³ãã¯åºåãã¡ã¤ã«ã«ã³ãã¼ãããææµä½ã®ã»ã¯ã·ã§ã³ã®ä»®æ³ã¢
       ãã¬ã¹ããã¹ã¿ã¼ãããã

       S-record ã raw ãã¤ããªãã¡ã¤ã«ãçæããå ´åã« -S
       ãç¨ããã°ããããã°æå ±ãæã¤ã»ã¯ã·ã§ã³ãåé¤ã§ãããã¾ãããã¤ããªãã¡
       ã¤ã«ã«ä¸è¦ãªæå ±ãæã£ãã»ã¯ã·ã§ã³ãæ¶å»ããã®ã« -R ãå½¹ã«ç«ã¤å ´åãããã

       infile 㨠outfile ã¯ããããå¥åã»åºåãã¡ã¤ã«ã§ããã outfile ãæå®ãããªãã¨
       objcopy ã¯ä¸æãã¡ã¤ã«ãä½æãããã®çµæãå¥åãã¡ã¤ã«ã®ååã«ãªãã¼ã ãã (ã
       ãªãã¡ãã¨ã®å¥åãã¡ã¤ã«ã¯ç ´å£ããã)ã


       -I bfdname, --input-target=bfdname
              å¥åãã¡ã¤ã«ã®ãªãã¸ã§ã¯ããã©ã¼ãããã bfdname
              ã¨ãã¦åãæ±ããé常ã¯èªåçã«èªèããã

       -O bfdname, --output-target=bfdname
              åºåãã¡ã¤ã«ã®ãªãã¸ã§ã¯ããã©ã¼ãããã bfdname ã«ããã

       -F bfdname, --target=bfdname
              å¥åºåãã¡ã¤ã«ã®ãªãã¸ã§ã¯ããã©ã¼ãããã« bfdname
              ãç¨ãããããªãã¡å¥åãã¡ã¤ã«ãå¤æããã«åã«åºåãã¡ã¤ã«ã«ã³ãã¼ããã

       -R sectionname, --remove-section=sectionname
              æå®ããã»ã¯ã·ã§ã³ããã¡ã¤ã«ããåé¤ããããã®ãªãã·ã§ã³ã¯è¤æ°åæå®ã
              ããã¨ãã§ããããã®ãªãã·ã§ã³ã誤ã£ã¦ç¨ããã¨ãåºåãã¡ã¤ã«ãå½¹ç«ãã
              ã«ãªãå¯è½æ§ãããã

       -S, --strip-all
              ãªãã±ã¼ã·ã§ã³æå ±ã¨ã·ã³ãã«æå ±ãå¥åãã¡ã¤ã«ããã³ãã¼ããªãã

       -g, --strip-debug
              ãããã°ã·ã³ãã«ãå¥åãã¡ã¤ã«ããã³ãã¼ããªãã

       --strip-unneeded
              ãªãã±ã¼ã·ã§ã³å¦çã«ä¸è¦ãªã·ã³ãã«ããã¹ã¦åãå»ãã

       -K symbolname, --keep-symbol=symbolname
              å¥åãã¡ã¤ã«ãã symbolname ã¨ããååã®ã·ã³ãã«ã ããã³ãã¼ããã
              è¤æ°åæå®ã§ããã

       -N symbolname, --strip-symbol=symbolname
              å¥åãã¡ã¤ã«ã® symbolname ã¨ããååã®ã·ã³ãã«ãã³ãã¼ããªãã è¤æ°åæå®ã§ããã

       -L symbolname, --localize-symbol=symbolname
              symbolname ããã®ãã¡ã¤ã«ã«ãã¼ã«ã«ãªãã®ã«ããå¤é¨ããè¦ããªãããã«ããã
              è¤æ°åæå®ã§ããã

       -W symbolname, --weaken-symbol=symbolname
              symbolname ã weak ã«ããã è¤æ°åæå®ã§ããã

       -x,  --discard-all
              å¥åãã¡ã¤ã«ã®ã°ãã¼ãã«ã§ãªãã·ã³ãã«ã¯ã³ãã¼ããªãã

       -X, --discard-locals
              ã³ã³ãã¤ã©ãçæãããã¼ã«ã«ãªã·ã³ãã« (é常 "L" ã¾ã㯠"."
              ã§ã¯ãã¾ãã·ã³ãã«) ã¯ã³ãã¼ããªãã

       -b byte, --byte=byte
              å¥åãã¡ã¤ã«ã interleave ã¥ã¤åºåã£ãåã»ã¯ã·ã§ã³ãã byte ãã¤
              ãç®ã ããã³ãã¼ãã (ããããã¼ã¿ã¯å½±é¿ãããªã)ã byte ã®ç¯å²ã¯ 0 ãã
              interleave-1 ã¾ã§ã§ããã interleave ã®å¤ã¯ -i(ã¾ãã¯--interleave)
              ãªãã·ã§ã³ã§æå®ããã ãã®ãªãã·ã§ã³ã¯ ROM ãã‐
              ã°ã©ã ç¨ã®ãã¡ã¤ã«ãä½æããã¨ãã«ä¾¿å©ã§ãããåº åã¿ã¼ã²ãã srec
              ã¨å±ã«ç¨ãããããã¨ãå¤ãã

       -i interleave, --interleave=interleave
              interleave ãã¤ãã«ã¤ã 1 ãã¤ãã¥ã¤ãã³ãã¼ãããããã©ã«ã㯠4
              ã§ãããä½çªç®ã®ãã¤ããã³ãã¼ããã㯠-b(ã¾ãã¯--byte ) ãªãã·ã§ã³ã§æå®ããã
              -b ã --bytes ãæå®ãããªã㣠ãå ´å㯠interleave ã¯ç¡è¦ãããã

       -p, --preserve-dates
              åºåãã¡ã¤ã«ã®ã¢ã¯ã»ã¹æå»ã¨ä¿®æ£æå»ãå¥åãã¡ã¤ã«ã¨åãã«ããã

       --debugging
              å¯è½ãªãã°ãããã°æå ±ãå¤æããããã®ãªãã·ã§ã³ã¯ããã©ã«ãã«ã¯ãªã£ã¦
              ããªãããã¹ã¦ã®ãããã°ãã©ã¼ãããããµãã¼ãããã¦ããããã§ã¯ãªããã
              ãã®å¤æã«ã¯æéããããããã§ããã

       --gap-fill=val
              ã»ã¯ã·ã§ã³éã®ã®ã£ããã val ã§åããããã®åä½ã¯ ã»ã¯ã·ã§ã³ã® load
              address (LMA)
              ã«é©ç¨ããããããã¯ã»ã¯ã·ã§ã³ã®ãµã¤ãºãæµä½ã¢ãã¬ã¹ã®åå¢ããã ãã®ä½åã val
              ã§åãããã¨ã§ãªãããã

       --pad-to=address
              åºåãã¡ã¤ã«ããã¼ãã¢ãã¬ã¹ address ã¾ã§æ°´å¢ãããã
              ããã¯æå¾ã®ã»ã¯ã·ã§ã³ã®ãµã¤ãºãå¢ãããã¨ã§ãªãããã ä½åãªã¹ãã¼ã¹ã¯
              --gap-fill ã§æå®ãããå¤ã§åãããã (ããã©ã«ã㯠0)ã

       --set-start=val
              æ°ãããã¡ã¤ã«ã®ã¹ã¿ã¼ãã¢ãã¬ã¹ã val ã«è¨å®ããããã¹ã¦ã®ãªã
              ã¸ã§ã¯ããã¡ã¤ã«ãã©ã¼ãããã§ãã®æå®ãå¯è½ã§ã¯ãªããã¨ã«æ³¨æãããã¨ã

       --adjust-start=incr
              ã¹ã¿ã¼ãã¢ãã¬ã¹ã incr ã ãå¢ããããã¹ã¦ã®ãªãã¸ã§ã¯ããã¡ã¤ã«
              ãã©ã¼ãããã§ãã®æå®ãå¯è½ã§ã¯ãªããã¨ã«æ³¨æãããã¨ã

       --adjust-vma=incr
              ãã¹ã¦ã®ã»ã¯ã·ã§ã³ (ã¹ã¿ã¼ãã¢ãã¬ã¹ãå«ã¾ãã) ã®ã¢ãã¬ã¹ã incr
              ã ãå¢ããããã¹ã¦ã®ãªãã¸ã§ã¯ããã¡ã¤ã«ãã©ã¼ãããã§ä»»æ ã®ã¢ãã¬ã¹è¨‐
              å®ãæå®ãå¯è½ãªããã§ã¯ãªããã¨ã«æ³¨æãããã¨ãã¾ããã®ãª
              ãã·ã§ã³ã§ã¯ããããã®ã»ã¯ã·ã§ã³ããã¼ããããã¢ãã¬ã¹ãå¤ãã¦ãã¾ãã® ã§ããã‐
              ã°ã©ã ãåããªããªãå¯è½æ§ããã

       --adjust-section-vma=section{=,+,-}val
              ååã section ã®ã»ã¯ã·ã§ã³ã®ã¢ãã¬ã¹ãè¨å®ããã = ãç¨ã
              ãããå ´åã¯ã»ã¯ã·ã§ã³ã®ã¢ãã¬ã¹ã¯ val ã«ãããããã以å¤ã®å ´å
              ã¯ã»ã¯ã·ã§ã³ã®ã¢ãã¬ã¹ãã val ãå¢æ¸ããããä¸è¨ã® --adjust-vma
              ã«é¢ããã³ã¡ã³ããåç§ã®ãã¨ã section ã å¥åãã¡ã¤ã«ã«åå¨ããªãå ´åã¯è‐
              ¦åã°ã¡ãã»ã¼ã¸ã表示ããã (ãã ã --no-adjust-warning
              ãæå®ããã¦ããã表示ããªã)ã

       --adjust-warnings
              --adjust-section-vma ãæå®ããã¦ããã¨ãã 対象ã¨ãªãã»ã¯ã·ã§ã³ãå‐
              å¨ããªããã°è¦åã¡ãã»ã¼ã¸ã表示ããã ããã©ã«ãã®åä½ã§ããã

       --no-adjust-warnings
              --adjust-section-vma ãæå®ããã¦ããã¨ãããã¤å¯¾è±¡ã¨ãªãã» ã¯ã·ã§ã³ãå‐
              å¨ãã¦ããªãã¦ãè¦åã¡ãã»ã¼ã¸ã表示ããªãã

       --set-section-flags=section=flags
              æå®ããã»ã¯ã·ã§ã³ã®ãã©ã°ãè¨å®ãããå¼æ° flags ã¯ã³ã³ã (,) ã§
              åºåããããã©ã°æååã§ãããèªèãããæåå㯠allocã loadã readonlyã codeã
              dataã rom ã§ã
              ãããã¹ã¦ã®ãã©ã°ããããããã©ã¼ãããã§æå¹ãªããã§ã¯ãªããã¨ã«æ³¨æ ãããã¨ã

       --add-section=sectionname=filename
              ãã¡ã¤ã«ãã³ãã¼ããã¨ãã« sectionname ã¨ããååã®ã»ã¯ã·ã§ã³ã
              追å ããããã®æ°ããã»ã¯ã·ã§ã³ã®å容ã¯ãã¡ã¤ã« filename ããåã
              ããããã®ãªãã·ã§ã³ãæ©è½ããã®ã¯ãä»»æã®ã»ã¯ã·ã§ã³åããµãã¼ããã¦ã
              ããã©ã¼ãããã ãã§ããã

       --change-leading-char
              ãªãã¸ã§ã¯ããã¡ã¤ã«ã®ãã©ã¼ãããã«ãã£ã¦ã¯ãã·ã³ãã«åã®åé ã«ç¹å®ã® æå‐
              ã使ã£ã¦ããå ´åããããããããä¾ã¯ã¢ã³ãã¼ã¹ã³ã¢ (_) ã§ãããã¯
              ã³ã³ãã¤ã©ããã¹ã¦ã®ã·ã³ãã«åã«åç½®ããããã®ãªãã·ã§ã³ãæå®ãã㨠objcopy
              ã¯ãã©ã¼ãããå¤æã®éã«ãã¹ã¦ã®ã·ã³ãã«ã«ãããåé æåãå¤æ´ããã㨠ãããåãåé æå‐
              ãæã¤ãªãã¸ã§ã¯ãéã§ã¯ããã®ãªãã·ã§ã³ã¯æå³ãæã
              ãªããç°ãªãå ´åã¯ãå ´åã«å¿ãã¦åé æåã追å ããããåé¤ãå¤æ´ããã ãããã

       --remove-leading-char
              ã°ãã¼ãã«ã·ã³ãã«ã®åé æåããªãã¸ã§ã¯ããã¡ã¤ã«ã«ç¹æã®ãã®ã§ãã£ã
              å ´åããããåé¤ãããé常ã¯ã¢ã³ãã¼ã¹ã³ã¢ (_) ãããã«ãããããã®ãª
              ãã·ã§ã³ã¯ãã¹ã¦ã®ã°ãã¼ãã«ã·ã³ãã«ããåé ã«ããã¢ã³ãã¼ã¹ã³ã¢ãåé¤
              ããããã㯠(ã·ã³ãã«åã®å½åæµåãç°ãªã) è¤æ°ã®ãã©ã¼ãããã«å±ãã
              ãªãã¸ã§ã¯ã群ãåæã«ãªã³ã¯ããå ´åã«æç¨ã§ããããã®ãªãã·ã§ã³ã¯
              --change-leading-char ã¨ã¯ç°ãªããå¾èã§ã¯åºåã®ãã©ã¼ããã
              ã«ãããããã該å½ããã±ã¼ã¹ã§ã¯ãã¹ã¦å¤æ´ãè¡ãããã

       --weaken
              ãã¡ã¤ã«ã®ãã¹ã¦ã® global ãªã·ã³ãã«ã weak ã«å¤æ´ããã

       -v, --verbose
              詳細åºåã¢ã¼ããä¿®æ£ããããã¹ã¦ã®ãªãã¸ã§ã¯ããã¡ã¤ã«ããªã¹ããããæ¸
              庫ã®å ´åã¯"objcopy -V" ã¨ããã¨æ¸åº«ã®ãã¹ã¦ã®ã¡ã³ãã¼ã表示ããã

       -V, --version
              objcopy ã®ãã¼ã¸ã§ã³çªå·ã表示ãã¦çµäºããã

       --help objcopy ã®ãªãã·ã§ã³ã®è¦ç´ã表示ãã¦çµäºããã


é¢é£é ç®
       info ã® ` binutils ' ã¨ã³ããªã The GNU Binary Utilities, Roland H. Pesch
       (June 1993)ã


èä½æ¨©
       Copyright (c) 1993, 94, 95, 96, 1997 Free Software Foundation, Inc.

       Permission is granted to make and distribute verbatim copies of this
       manual provided the copyright notice and this permission notice are
       preserved on all copies.

       Permission is granted to copy and distribute modified versions of this
       manual under the conditions for verbatim copying, provided that the
       entire resulting derived work is distributed under the terms of a
       permission notice identical to this one.

       Permission is granted to copy and distribute translations of this
       manual into another language, under the above conditions for modified
       versions, except that this permission notice may be included in
       translations approved by the Free Software Foundation instead of in the
       original English.



cygnus support                   October 1994                       objcopy(1)