OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [emulparams/] [elf64mmix.sh] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
TEMPLATE_NAME=elf32
2
GENERATE_SHLIB_SCRIPT=yes
3
ELFSIZE=64
4
SCRIPT_NAME=elf
5
OUTPUT_FORMAT="elf64-mmix"
6
ENTRY=_start.
7
 
8
# Default to 0 as mmixal does.
9
TEXT_START_ADDR='DEFINED (__.MMIX.start..text) ? __.MMIX.start..text : 0'
10
# Don't add SIZEOF_HEADERS.
11
# Don't set EMBEDDED, that would be misleading; it's not that kind of system.
12
TEXT_BASE_ADDRESS=$TEXT_START_ADDR
13
DATA_ADDR='DEFINED (__.MMIX.start..data) ? __.MMIX.start..data : 0x2000000000000000'
14
 
15
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
16
ARCH=mmix
17
MACHINE=
18
COMPILE_IN=yes
19
EXTRA_EM_FILE=mmixelf
20
 
21
# The existence of a symbol __start (or _start) should overrule Main, so
22
# it can be a user symbol without the associated mmixal magic.  We
23
# also want to provide Main as a synonym for _start, if Main wasn't
24
# defined but is referred to, and _start was defined.
25
#
26
# The reason we use a symbol "_start." as a mediator is to avoid
27
# causing ld to force the type of _start to object rather than no
28
# type, which confuses disassembly; we also make it alphanumerically
29
# a successor of _start for similar reasons.  Perhaps it's a linker
30
# bug that linker-defined symbols set the symbol-type.
31
#
32
# Note that we smuggle this into OTHER_TEXT_SECTIONS (at the end
33
# of .text) rather than TEXT_START_SYMBOLS.  This is necessary, as
34
# DEFINED wouldn't find the symbol if it was at the top; presumably
35
# before the definition, if the definition is not in the first file.
36
# FIXME: Arguably a linker bug.
37
OTHER_TEXT_SECTIONS='
38
 _start. = (DEFINED (_start) ? _start
39
            : (DEFINED (Main) ? Main : (DEFINED (.text) ? .text : 0)));
40
 PROVIDE (Main = DEFINED (Main) ? Main : (DEFINED (_start) ? _start : _start.));
41
'
42
 
43
OTHER_SECTIONS='
44
 .MMIX.reg_contents :
45
 {
46
   /* Note that this section always has a fixed VMA - that of its
47
      first register * 8.  */
48
   *(.MMIX.reg_contents.linker_allocated);
49
   *(.MMIX.reg_contents);
50
 }
51
'
52
 
53
# FIXME: Also bit by the PROVIDE bug?  If not, this could be
54
# EXECUTABLE_SYMBOLS.
55
# By default, put the high end of the stack where the register stack
56
# begins.  They grow in opposite directions.  */
57
OTHER_SYMBOLS="PROVIDE (__Stack_start = 0x6000000000000000);"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.