MAN page from Mandrake 10.X dev86-0.16.3-2mdk.i586.rpm
Section: User Commands (1)
Updated: Apr, 1997Index
ld86 - Linker for as86
This linker understands only the object files produced by the as86 assembler,it can link them into either an impure or a separate I&D executable.
The linking defaults are everything off or none except for-0and the output file isa.out.There isnota standard library location defined in the linker.
- produce header with 16-bit magic
- produce header with 32-bit magic
- delete the header from the output file, used for MSDOS COM files. As a sideeffect this also includes -s as there's nowhere to put a symbol table.
- add file libdir-from-search/crtx.o to list of files linked
- data base address follows (in format suitable for strtoul)
- the top of heap (initial stack) address (in format suitable for strtoul)
- add dir name x to the head of the list of library dirs searched
- print symbols linked on stdout
- Create a native Linux OMAGIC output file. If the contents are i386 code thebinary can be either linked by GCC or executed by linux. If the-zoption is also included the linker can generate a QMAGIC executable.
- add library or object file libdir-from-search/x to list of files linked
- text base address follows (in format suitable for strtoul)
- separate I&D output
- add library libdir-from-search/libx.a to list of files linked
- print modules linked on stdout
- output file name follows
- strip symbols
- Generate a relocatable object from one source object, if the linker isgiven the -N option also the output format will be the hosts native formatif possible.
- trace modules being looked at on stdout
- Alter the symbol tables to add label 'extensions' so that labels withmore than 8 characters can be stored in elks executables.
- produce "unmapped zero page" or "QMAGIC" executablesAll the options not taking an argument may be turned off by following theoption letter by a '-', as for cc1.
The linker predefines several labels that can be imported into user programs.
- Standard C variable for the end of the text segment.
- Standard C variable for the end of the initilised data.
- Standard C variable for the end of the bss area.
- The offset within the executable file between the start of the text segmentand the start of the data segment in 16 byte 'paragraphs'. Note this iszerofor impure (tiny model) executables and is adjusted for executables thatdon't start at offset 0 within the segment.
- The lowest address with data in segment 'X'. (eg __seg0DL is for segment zeroor the text segment, __seg3DL is for the data segment)The value 'X' is a hex digit.
- The top of segment 'X's data area.
- The bottom of segment 'X's 'common data' or unitilised data area. Each segment has both an initilised and unitilised data area.
- The top of segment 'X's common area.
- This is the adjusted offset from segment 0 of the start of segment 'X'in 'paragraphs'.
The 6809 version does not support -i.
The previous versions of the linker could produce an 8086 executable withsegments of a size >64k, now only i386 executables may have segmentsthis large.
The linker cannot deal with reverse seeks caused byorg
instructions in the object file. Unlike previous versions the current onetraps 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-roption this is so it is compatible with pre-dev86 versions.
- PREDEFINED LABELS
This document was created byman2html,using the manual pages.