2 GENERATE_SHLIB_SCRIPT
=yes
5 OUTPUT_FORMAT
="elf64-mmix"
9 # Default to 0 as mmixal does.
10 TEXT_START_ADDR
='DEFINED (__.MMIX.start..text) ? __.MMIX.start..text : 0'
11 # Don't add SIZEOF_HEADERS.
12 # Don't set EMBEDDED, that would be misleading; it's not that kind of system.
13 TEXT_BASE_ADDRESS
=$TEXT_START_ADDR
14 DATA_ADDR
='DEFINED (__.MMIX.start..data) ? __.MMIX.start..data : 0x2000000000000000'
16 MAXPAGESIZE
="CONSTANT (MAXPAGESIZE)"
22 # The existence of a symbol __start (or _start) should overrule Main, so
23 # it can be a user symbol without the associated mmixal magic. We
24 # also want to provide Main as a synonym for _start, if Main wasn't
25 # defined but is referred to, and _start was defined.
27 # The reason we use a symbol "_start." as a mediator is to avoid
28 # causing ld to force the type of _start to object rather than no
29 # type, which confuses disassembly; we also make it alphanumerically
30 # a successor of _start for similar reasons. Perhaps it's a linker
31 # bug that linker-defined symbols set the symbol-type.
33 # Note that we smuggle this into OTHER_TEXT_SECTIONS (at the end
34 # of .text) rather than TEXT_START_SYMBOLS. This is necessary, as
35 # DEFINED wouldn't find the symbol if it was at the top; presumably
36 # before the definition, if the definition is not in the first file.
37 # FIXME: Arguably a linker bug.
38 # Only do this for a final link, or else we'll mess up e.g. error
42 _start. = (DEFINED (_start) ? _start
43 : (DEFINED (Main) ? Main : (DEFINED (.text) ? .text : 0)));
44 PROVIDE (Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : _start.));
50 /* Note that this section always has a fixed VMA - that of its
51 first register * 8. */
52 *(.MMIX.reg_contents.linker_allocated);
53 *(.MMIX.reg_contents);
57 # FIXME: Also bit by the PROVIDE bug? If not, this could be
59 # By default, put the high end of the stack where the register stack
60 # begins. They grow in opposite directions. */
61 OTHER_SYMBOLS
="PROVIDE (__Stack_start = 0x6000000000000000);"
This page took 0.029752 seconds and 4 git commands to generate.