Modifying Startup Files - 2023.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
Release Date
2023.2 English

The initialization files are distributed in both precompiled and source form with Vivado. The pre-compiled object files are found in the compiler library directory. Sources for the initialization files for the MicroBlaze GNU compiler can be found in the <XILINX_>/Vitis/<version>/data/embeddedsw/lib/microblaze/src/ directory, where <XILINX_> is the Vivado installation path and <version> is the release version of the Vitis software platform.

To fulfill a custom startup file requirement, you can take the files from the source area and include them as a part of your application sources. Alternatively, you can assemble the files into .o files and place them in a common area. To refer to the newly created object files instead of the standard files, use the -B directory -name command line option while invoking mb-gcc.

To prevent the default startup files from being used, use the -nostartfiles on the final compile line.

Note: The miscellaneous compiler standard CRT files, such as crti.o, and crtbegin.o, are not provided with source code. They are available in the installation to be used as is. You might need to bring them in on your final link command.