Summary of Linker Options

Syntax Description
/? Display a list of valid linker options (same as /HELP)
/ALIGNA[DDR]:factor Set address alignment
/A[LIGNFILE]:factor Set file alignment
/BAS[E]:[address]
/NOBASE

/BAS[E]: [address|@filename, key]

Set preferred loading address
/BR[OWSE]
/NOBR[OWSE]
(Inactive) Add browse information
/CODE: attributes Set section attributes for executable
/DATA: attributes Set section attributes for data
/DB[GPACK]
/NODB[GPACK]
Pack debugging information
/D[EBUG]
/NODEB[UG]
Include debugging information
/DEF[AULTLIBRARYSEARCH][:lib]
/NOD[EFAULTLIBRARYSEARCH][:lib]
Search default libraries
/DLL Generate DLL
/EN[TRY]:name Specify an entry point in an executable file
/EXEC[UTABLE] Generate an executable file
/EXEPACK
/NOEXE[PACK]
Reduce the size of the executable file.
/EXT[DICTIONARY]
/NOE[XTDICTIONARY]
Use extended dictionary to search libraries
/FI[XED]
/NOFI[XED]
Do not relocate the file in memory
/FO[RCE]
/NOFO[RCE]
Create executable output file even if errors are detected
/FR[EEFORMAT]
/NOFR[EEFORMAT]
Allow free placement of command elements on the command line
/HEA[P]:reserve[,commit] Set size of program heap
/H[ELP] Display help
/IGNORECASE
/NOI[GNORECASE]
Turn off case sensitivity
/INC[LUDE] Forces a reference to a symbol
/I[NFORMATION]
/NOIN[FORMATION]
Display status of the linking process
/L[INENUMBERS]
/NOLI[NENUMBERS]
Include line numbers in map file
/LO[GO]
/NOL[OGO]
Display logo, echo response file
/M[AP][:name]
/NOM[AP]
Generate map file
/OC[ACHE][:number] Sets the size of the linker's object module cache
/OLDCPP
/NOOLDCPP
Ignore template resolution directives in old object files
/OPTF[UNC]
/NOOPTF[UNC]
Remove unreferenced functions
/OPTVFUNC Remove unreferenced virtual functions (inactive)
/O[UT][:name] Name output file
/PACKCODE
/NOPACKCODE
Group code segments to roduce more compact code
/PACKDATA
/NOPACKDATA
Group data segments to produce more compact code
/PDD Produce a physical device driver
/PM[TYPE]:type Specify application type
/RUNFROMVDM Create an OS/2 session.
/SEC[TION]:name,attributes Set attributes for section
/SE[GMENTS]:number Set maximum number of segments
/SEGORDER
/NOSEGORDER
Change the sort order for assigning segments
/ST[ACK]:reserve
/ST[ACK]:reserve [,commit]
Set stack size of application
/STU[B]:filename
/NOSTU[B]
Specify the name of the DOS stub file
/SU[BSYSTEM]:subsystem[,major[.minor]] Specify the required subsystem and version
/VDD Produce a virtual device driver
/VERB[OSE]
/NOV[ERBOSE]
Display status of linking process
/VER[SION]:major [.minor] Write a version number in the run file


Set Linker Options