6.3.4. Listing addresses of static data

To list to stdout all the global and static data variables and all the structure field addresses, enter:

fromelf -text -a -select * infile.axf

Selecting only structures

To produce a text file containing all of the structure addresses in inputfile.axf but none of the global or static data variable information, enter:

fromelf -text -a -select *.* -o strucaddress.txt infile.axf

Selecting only nested structures

To produce a text file containing addresses of the nested structure only, enter:

fromelf -text -a -select *.*.* -o strucaddress.txt infile.axf

Selecting only variables

To produce a text file containing all of the global or static data variable information in inputfile.axf but none of the structure addresses, enter:

fromelf -text -a -select *, ~*.* -o strucaddress.txt infile.axf
Copyright © 2002 ARM Limited. All rights reserved.ARM DUI 0212A
Non-Confidential