* ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
[deliverable/binutils-gdb.git] / ld / emulparams / elf64alpha.sh
1 ENTRY=_start
2 SCRIPT_NAME=elf
3 ELFSIZE=64
4 TEMPLATE_NAME=elf32
5 OUTPUT_FORMAT="elf64-alpha"
6 TEXT_START_ADDR="0x120000000"
7 MAXPAGESIZE=0x10000
8 COMMONPAGESIZE=0x2000
9 NONPAGED_TEXT_START_ADDR="0x120000000"
10 ARCH=alpha
11 MACHINE=
12 GENERATE_SHLIB_SCRIPT=yes
13 DATA_PLT=
14 NOP=0x2ffe0000 # unop
15
16 OTHER_READONLY_SECTIONS="
17 .reginfo ${RELOCATING-0} : { *(.reginfo) }"
18
19 # This code gets inserted into the generic elf32.sc linker script
20 # and allows us to define our own command line switches.
21 PARSE_AND_LIST_PROLOGUE='
22 #define OPTION_TASO 300
23 /* Set the start address as in the Tru64 ld */
24 #define ALPHA_TEXT_START_32BIT 0x12000000
25
26 static int elf64alpha_32bit = 0;
27
28 struct ld_emulation_xfer_struct ld_elf64alpha_emulation;
29 static void gld_elf64alpha_finish PARAMS ((void));
30 '
31
32 PARSE_AND_LIST_LONGOPTS='
33 {"taso", no_argument, NULL, OPTION_TASO},
34 '
35
36 PARSE_AND_LIST_OPTIONS='
37 fprintf (file, _(" -taso\t\t\tLoad executable in the lower 31-bit addressable\n"));
38 fprintf (file, _("\t\t\t virtual address range\n"));
39 '
40
41 PARSE_AND_LIST_ARGS_CASES='
42 case EOF:
43 if (elf64alpha_32bit && !link_info.shared && !link_info.relocateable)
44 {
45 lang_section_start (".interp",
46 exp_binop ('\''+'\'',
47 exp_intop (ALPHA_TEXT_START_32BIT),
48 exp_nameop (SIZEOF_HEADERS, NULL)));
49 ld_elf64alpha_emulation.finish = gld_elf64alpha_finish;
50 }
51 return 0;
52
53 case OPTION_TASO:
54 elf64alpha_32bit = 1;
55 break;
56 '
57
58 PARSE_AND_LIST_EPILOGUE='
59 #include "elf/internal.h"
60 #include "elf/alpha.h"
61 #include "elf-bfd.h"
62
63 static void
64 gld_elf64alpha_finish()
65 {
66 elf_elfheader (output_bfd)->e_flags |= EF_ALPHA_32BIT;
67 }
68 '
This page took 0.032405 seconds and 5 git commands to generate.