S32V ISP C++ Linker

The S32V ISP C++ Linker page displays settings for the C++ linker tool.

Table 1. S32V ISP C++ Linker
Option Description
Command Command that will be used by S32 Design Studio to run the linker.

Default: ${linker}

All options Expanded command line options the linker will be called with.

Shows actual values of variables and options according to Command line pattern.

Default:--accept-unknown-input-arch -Map <project_name>_ISP.map

-T"<project_dir>/Project_Settings/Linker_Files/S32V_ISP.ld"

Command line pattern Command line to call the linker.

Default: ${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}

General

The General page specifies the general properties of the S32V ISP C++ Linker tool.

Table 2. S32V ISP C++ Linker: General
Option Description
Do not use standard start files

(-nostartfiles)

This option configures the linker to not use the standard system startup files when linking.
Do not use default libraries

(-nodefaultlibs)

This option configures the linker to not use the standard system libraries (such as newlib) when linking. Only the customer-specified libraries can be passed to the linker.
No startup or default libs

(-nostdlib)

This option configures the linker to not use the standard system startup files and libraries when linking. Only the customer-specified libraries can be passed to the linker.
Omit all symbols information (-s) This option configures the linker to remove all symbol table and relocation table information from the executable.
Script files (-T) The linker script.

Default:"${ProjDirPath}/Project_Settings/Linker_Files/S32V_ISP.ld"

Libraries

The Libraries page specifies custom libraries and their locations to be used by the S32V ISP C++ Linker tool during compilation.

Note: You can use this page to specify libraries or startup files if you have chosen not to use standard system libraries by selecting Do not use default libraries (--nodefaultlibs) or Do not use standard start files (- nostartfiles) on the General page of S32V ISP C++ Linker.
Table 3. S32V ISP C++ Linker: Libraries
Option Description
Libraries (-l) The custom libraries to be linked to the application. The libraries will be linked in the top-down order they follow in the list.
Library search path (-L) The file paths where the linker looks for custom libraries specified in the Libraries (-l) field. The linker searches the paths in the order they follow in the list.

Miscellaneous

This section describes settings that can be configured on the Miscellaneous page in properties of the project you create with S32 Design Studio. The page allows you to specify various linker configuration options.

The following table describes the options available on the Miscellaneous page.

Table 4. S32V ISP C++ Linker: Miscellaneous
Option Description
Linker flags Allows you to specify command line options supported and not available on this page.
Tip: To enable verbose output to the console, specify -Wl,--verbose in this field. Alternatively, you can add --verbose in the Other options (Xlinker [option]) list.

Default: --accept-unknown-input-arch -Map ${BuildArtifactFileBaseName}.

Other options

(-Xlinker [option])

Linker-specific options.

Allows you to specify command line options not available on this page.

If you specify options that take their arguments after the equal sign, specify the option and its argument as a single item. For example, to compress debug section, add --compress-debug-sections=zlib.

To specify options that take arguments after the space, add the option first, and then add the argument as an item that follows the option in this list. For example, to specify that armelfd emulation mode should be used, add -m as a single item, and then add armelfd as the item that follows.

Tip: To enable verbose output to the console, click Add, type --verbose, and then click OK.
Note: This list of options is analogous to using -Wl,[option] parameter in Linker flags.

By default, this list is empty.

Other objects A list of object files or their locations.

Use this list to specify object files that you to use during the linking process. This option lists paths that the linker searches for objects. The linker searches the paths in the order shown in this list.

By default, this list is empty.

Shared Library Settings

The shared libraries are supported only for the S32V234 Cortex-A53 Linux (Shared Library) Library project type. If you want to create the shared libraries from other types of projects, you can go to the Build Artifact tab and change Artifact Type to ARM64 Linux Shared Library, but it is highly recommended to use specific type of project.

Link Order

This section describes settings that can be configured on the Link Order page in properties of the project you create with S32 Design Studio. The page allows you to specify the order in which you want the linker to process files added on the Libraries page.

The following table describes the options available on the Link Order page.

Table 5. S32V ISP C++ Linker: Link Order
Option Description
Customize linker input order Enables editing of the Link Order list.

By default, this check box is cleared.

Link Order List of files (sources and libraries) in linking order.

By default this list is empty.