ld: MMIX
1
1 4.8 'ld' and MMIX
1 =================
1
1 For MMIX, there is a choice of generating 'ELF' object files or 'mmo'
1 object files when linking. The simulator 'mmix' understands the 'mmo'
1 format. The binutils 'objcopy' utility can translate between the two
1 formats.
1
1 There is one special section, the '.MMIX.reg_contents' section.
1 Contents in this section is assumed to correspond to that of global
1 registers, and symbols referring to it are translated to special
1 symbols, equal to registers. In a final link, the start address of the
1 '.MMIX.reg_contents' section corresponds to the first allocated global
1 register multiplied by 8. Register '$255' is not included in this
1 section; it is always set to the program entry, which is at the symbol
1 'Main' for 'mmo' files.
1
1 Global symbols with the prefix '__.MMIX.start.', for example
1 '__.MMIX.start..text' and '__.MMIX.start..data' are special. The
1 default linker script uses these to set the default start address of a
1 section.
1
1 Initial and trailing multiples of zero-valued 32-bit words in a
1 section, are left out from an mmo file.
1