Target selection
QNX SDP8.0Utilities ReferenceUtilities
A target is an object file format. A given target may be
supported for multiple architectures (see
Architecture selection
).
A target selection may also have variations for different operating
systems or architectures.
The command to list valid target values is objdump -i
(the first column of output contains the relevant information).
A sample value is elf32-i386
.
Here's how to specify the target for the ELF utilities:
- objdump
-
- -b command-line option
- GNUTARGET environment variable
- Deduced from the input file.
- objcopy, strip
Input target:
- -I or -F command-line option
- GNUTARGET environment variable
- Deduced from the input file.
Output target:
- -O or -F command-line option
- Input target (see above)
- GNUTARGET environment variable
- Deduced from the input file.
- nm, size, and strings
- --target command-line option
- GNUTARGET environment variable
- Deduced from the input file.
- ld
Input target:
- -b command-line option
- TARGET script command
(see
Option Commands
in Using LD in the online GNU documentation) - GNUTARGET environment variable
- Default target of the selected linker emulation
(see
Linker emulation selection,
below)
Output target:
- --oformat command-line option
- OUTPUT_FORMAT script command
(see
Option Commands
in Using LD in the GNU documentation) - Linker input target (see above).
Page updated: