Linking Modes of the TIGCC Linker

Previous The TIGCC Linker Next

A linking mode defines how the linker treats the contents of the program after they have been read from the object files. The TIGCC linker has several different modes; some of them are related to specific output file formats, and some of them are present only for historical reasons.

The recommended mode for normal TIGCC programs is TIGCC-native mode. It is the simplest mode; the program is basically an empty sheet of paper, which can be filled with code of all sorts. The default mode is actually kernel mode unless you set the appropriate command-line option, to make existing programs work without modifications.