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