Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

5.11.3.3.6. elf2mif

Description

elf2-h transforms the data within an elf file in the address range [low, high] into the corresponding -H file. Lane files are optionally created (--create-lanes=1, default is 0). Lane file names are generated based on the output file by inserting "_lane0", "_lane1", etc. before the ".-h" extension of the output filename.

Usage

elf2-h elf_file [low_address  high_address] [--width=width]
                [--create-lanes=lanes] [-h_file]

Options

elf_file               the elf input file
    low address            beginning of the range to transform
    high address           end of the range to transform
    --width=width          [ 8 | 16 | 32 | 64 | 128]
    --create-lanes=lanes   [0 | 1] (default 0)
    -h_file               the -H file to create

Example

elf2-h foo.elf 0 0x0FFF --width=32 --create_lanes=1 bar.-h

creates -H files—bar.-h, bar_lane0.-h, bar_lane1.-h, bar_lane2.-h, and bar_lane3.-h