Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ld86(1)
Edit
PageHistory
Diff
Info
LikePages
ld86 !!!ld86 NAME SYNOPSIS DESCRIPTION OPTIONS PREDEFINED LABELS HISTORY BUGS ---- !!NAME ld86 - Linker for as86(1) !!SYNOPSIS __ld86__ [[__-03MNdimrstyz__[[-]] [[__-llib_extension__] [[__-o outfile__] [[__-Ccrtfile__] [[__-Llibdir__] [[__-Olibfile__] [[__-Ttextaddr__] [[__-Hheapsize__] [[__-Ddataaddr__] __infile...__ !!DESCRIPTION This linker understands only the object files produced by the as86 assembler, it can link them into either an impure or a separate I The linking defaults are everything off or none except for __-0__ and the output file is __a.out__. There is ''not'' a standard library location defined in the linker. !!OPTIONS __-0__ produce header with 16-bit magic __-3__ produce header with 32-bit magic __-d__ delete the header from the output file, used for MSDOS COM files. As a side effect this also includes -s as there's nowhere to put a symbol table. __-Cx__ add file libdir-from-search/crtx.o to list of files linked __-D__ data base address follows (in format suitable for strtoul) __-H__ the top of heap (initial stack) address (in format suitable for strtoul) __-Lx__ add dir name x to the head of the list of library dirs searched __-M__ print symbols linked on stdout __-N__ Create a native Linux OMAGIC output file. If the contents are i386 code the binary can be either linked by GCC or executed by linux. If the __-z__ option is also included the linker can generate a QMAGIC executable. __-Ox__ add library libdir-from-search/x to list of files linked __-T__ text base address follows (in format suitable for strtoul) __-i__ separate I __-lx__ add library libdir-from-search/libx.a to list of files linked __-m__ print modules linked on stdout __-o__ output file name follows __-s__ strip symbols __-r__ Generate a relocatable object from one source object, if the linker is given the -N option also the output format will be the hosts native format if possible. __-t__ trace modules being looked at on stdout __-y__ Alter the symbol tables to add label 'extensions' so that labels with more than 8 characters can be stored in elks executables. __-z__ produce All the options not taking an argument may be turned off by following the option letter by a '-', as for cc1. !!PREDEFINED LABELS The linker predefines several labels that can be imported into user programs. ____etext__ Standard C variable for the end of the text segment. ____edata__ Standard C variable for the end of the initilised data. ____end__ Standard C variable for the end of the bss area. ____segoff__ The offset within the executable file between the start of the text segment and the start of the data segment in 16 byte 'paragraphs'. Note this is __zero__ for impure (tiny model) executables and is adjusted for executables that don't start at offset 0 within the segment. ____segXDL__ The lowest address with data in segment 'X'. (eg __seg0DL is for segment zero or the text segment, __seg3DL is for the data segment) The value 'X' is a hex digit. ____segXDH__ The top of segment 'X's data area. ____segXCL__ The bottom of segment 'X's 'common data' or unitilised data area. Each segment has both an initilised and unitilised data area. ____segXCH__ The top of segment 'X's common area. ____segXSO__ This is the adjusted offset from segment 0 of the start of segment 'X' in 'paragraphs'. !!HISTORY The 6809 version does not support -i. The previous versions of the linker could produce an 8086 executable with segments of a size !!BUGS The linker cannot deal with reverse seeks caused by __org__ instructions in the object file. Unlike previous versions the current one traps the error rather than trying to fill up the hard disk. The linker produces a broken a.out object file if given one input and the __-r__ option this is so it is compatible with pre-dev86 versions. ----
2 pages link to
ld86(1)
:
Man1l
as86(1)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.