llvm.org GIT mirror llvm / dd9df6f
[docs][llvm-objcopy] Add description of binary input/output to doc We briefly referred to being able to specify --target=binary without explaining what binary input/output meant. This change adds a section on this. Reviewed by: MaskRay, abrachet Differential Revision: https://reviews.llvm.org/D64245 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365312 91177308-0d34-0410-b5e6-96231b3b80d8 James Henderson a month ago
1 changed file(s) with 17 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
456456 - `elf32-sparc`
457457 - `elf32-sparcel`
458458
459 Additionally, all targets except ``binary`` and ``ihex`` can have ``-freebsd``
460 as a suffix.
459 Additionally, all targets except `binary` and `ihex` can have `-freebsd` as a
460 suffix.
461
462 BINARY INPUT AND OUTPUT
463 -----------------------
464
465 If `binary` is used as the value for :option:`--input-target`, the input file
466 will be embedded as a data section in an ELF relocatable object, with symbols
467 ``_binary__start``, ``_binary__end``, and
468 ``_binary__size`` representing the start, end and size of the data,
469 where ```` is the path of the input file as specified on the command
470 line with non-alphanumeric characters converted to ``_``.
471
472 If `binary` is used as the value for :option:`--output-target`, the output file
473 will be a raw binary file, containing the memory image of the input file.
474 Symbols and relocation information will be discarded. The image will start at
475 the address of the first loadable section in the output.
461476
462477 EXIT STATUS
463478 -----------