5 OUTPUT_FORMAT
="elf64-alpha"
6 TEXT_START_ADDR
="0x120000000"
8 NONPAGED_TEXT_START_ADDR
="0x120000000"
11 GENERATE_SHLIB_SCRIPT
=yes
15 OTHER_READONLY_SECTIONS
="
16 .reginfo ${RELOCATING-0} : { *(.reginfo) }"
18 # This code gets inserted into the generic elf32.sc linker script
19 # and allows us to define our own command line switches.
20 PARSE_AND_LIST_PROLOGUE
='
21 #define OPTION_TASO 300
22 /* Set the start address as in the Tru64 ld */
23 #define ALPHA_TEXT_START_32BIT 0x12000000
25 static int elf64alpha_32bit = 0;
27 struct ld_emulation_xfer_struct ld_elf64alpha_emulation;
28 static void gld_elf64alpha_finish PARAMS ((void));
31 PARSE_AND_LIST_LONGOPTS
='
32 {"taso", no_argument, NULL, OPTION_TASO},
35 PARSE_AND_LIST_OPTIONS
='
36 fprintf (file, _(" -taso\t\t\tLoad executable in the lower 31-bit addressable\n"));
37 fprintf (file, _("\t\t\t virtual address range\n"));
40 PARSE_AND_LIST_ARGS_CASES
='
42 if (elf64alpha_32bit && !link_info.shared && !link_info.relocateable)
44 lang_section_start (".interp",
46 exp_intop (ALPHA_TEXT_START_32BIT),
47 exp_nameop (SIZEOF_HEADERS, NULL)));
48 ld_elf64alpha_emulation.finish = gld_elf64alpha_finish;
57 PARSE_AND_LIST_EPILOGUE
='
58 #include "elf/internal.h"
59 #include "elf/alpha.h"
63 gld_elf64alpha_finish()
65 elf_elfheader (output_bfd)->e_flags |= EF_ALPHA_32BIT;