Keil Logo

--select=select_options

3.42 --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:
  • Use a comma-separated list to specify multiple fields, for example:
    a*,b*,c*
  • Use the wildcard character * to match any name.
  • Use the wildcard character ? to match any single letter.
  • Prefix the select_options string with + to specify the fields to include. This is the default behavior.
  • Prefix the select_options string with ~ to specify the fields to exclude.
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 DUI0459G
Copyright © 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.