1 # $FreeBSD: src/contrib/binutils/ld/emulparams/elf64alpha.sh,v 1.3.2.2 2002/09/01 23:44:15 obrien Exp $
8 OUTPUT_FORMAT="elf64-alpha"
9 TEXT_START_ADDR="0x120000000"
11 NONPAGED_TEXT_START_ADDR="0x120000000"
14 GENERATE_SHLIB_SCRIPT=yes
16 # Note that the string of digits is little-endian.
19 OTHER_READONLY_SECTIONS="
20 .reginfo ${RELOCATING-0} : { *(.reginfo) }"
22 # This code gets inserted into the generic elf32.sc linker script
23 # and allows us to define our own command line switches.
24 PARSE_AND_LIST_PROLOGUE='
25 #define OPTION_TASO 300
26 /* Set the start address as in the Tru64 ld */
27 #define ALPHA_TEXT_START_32BIT 0x12000000
29 static int elf64alpha_32bit = 0;
31 struct ld_emulation_xfer_struct ld_elf64alpha_emulation;
32 static void gld_elf64alpha_finish PARAMS ((void));
35 PARSE_AND_LIST_LONGOPTS='
36 {"taso", no_argument, NULL, OPTION_TASO},
39 PARSE_AND_LIST_OPTIONS='
40 fprintf (file, _(" -taso\t\t\tLoad executable in the lower 31-bit addressable\n"));
41 fprintf (file, _("\t\t\t virtual address range\n"));
44 PARSE_AND_LIST_ARGS_CASES='
46 if (elf64alpha_32bit && !link_info.shared && !link_info.relocateable)
48 lang_section_start (".interp",
50 exp_intop (ALPHA_TEXT_START_32BIT),
51 exp_nameop (SIZEOF_HEADERS, NULL)));
52 ld_elf64alpha_emulation.finish = gld_elf64alpha_finish;
61 PARSE_AND_LIST_EPILOGUE='
62 #include "elf/internal.h"
63 #include "elf/alpha.h"
67 gld_elf64alpha_finish()
69 elf_elfheader (output_bfd)->e_flags |= EF_ALPHA_32BIT;