3.52 --select=select_options

When used with --fieldoffsets or --text -a options, displays only those fields that match a specified pattern list.

Syntax

--select=select_options

Where select_options is a list of patterns to match. Use special characters to select multiple fields:

If you are using a special character on Unix platforms, you must enclose the options in quotes to prevent the shell expanding the selection.

Usage

Use this option with either --fieldoffsets or --text -a.

Example

The output from the --fieldoffsets option might include the following data structure:

|structure.f1|                       EQU     0        ;  int16_t
|structure.f2|                       EQU     0x2      ;  int16_t
|structure.f3|                       EQU     0x4      ;  int16_t
|structure.f11|                      EQU     0x6      ;  int16_t
|structure.f21|                      EQU     0x8      ;  int16_t
|structure.f31|                      EQU     0xA      ;  int16_t
|structure.f111|                     EQU     0xC      ;  int16_t

To output only those fields that start with f1, enter:

fromelf --select=structure.f1* --fieldoffsets infile.axf

This produces the output:

|structure.f1|                       EQU     0        ;  int16_t
|structure.f11|                      EQU     0x6      ;  int16_t
|structure.f111|                     EQU     0xC      ;  int16_t

    END
Non-ConfidentialPDF file icon PDF versionARM DUI0477M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.