objcopy [`-I' bfdname|`--input-target='bfdname]
[`-O' bfdname|`--output-target='bfdname]
[`-B' bfdarch|`--binary-architecture='bfdarch]
[`-S'|`--strip-all']
[`-g'|`--strip-debug']
[`-j' sectionname|`--only-section='sectionname]
[`-R' sectionname|`--remove-section='sectionname]
[`--help']
infile [outfile]
$ objdump -i
BFD header file version (GNU Binutils for Ubuntu) 2.18
elf32-i386
(header little endian, data little endian)
i386
a.out-i386-linux
(header little endian, data little endian)
i386
efi-app-ia32
(header little endian, data little endian)
i386
elf32-little
(header little endian, data little endian)
i386
elf32-big
(header big endian, data big endian)
i386
elf64-x86-64
(header little endian, data little endian)
i386
efi-app-x86_64
(header little endian, data little endian)
i386
elf64-little
(header little endian, data little endian)
i386
elf64-big
(header big endian, data big endian)
i386
srec
(header endianness unknown, data endianness unknown)
i386
symbolsrec
(header endianness unknown, data endianness unknown)
i386
tekhex
(header endianness unknown, data endianness unknown)
i386
binary
(header endianness unknown, data endianness unknown)
i386
ihex
(header endianness unknown, data endianness unknown)
i386
trad-core
(header endianness unknown, data endianness unknown)
elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big
i386 elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big
elf64-x86-64 efi-app-x86_64 elf64-little elf64-big srec
i386 elf64-x86-64 efi-app-x86_64 elf64-little elf64-big srec
symbolsrec tekhex binary ihex trad-core
i386 symbolsrec tekhex binary ihex ---------
$ objcopy -I binary -O elf32-i386 -B i386 image.jpg image.o
$ objcopy -O binary -S -R .comment -R .note code.o code.bin
$ objcopy -O binary -j .text code.o code.bin
本著作係採用
Creative Commons 條款 授權.