File: s390.em

package info (click to toggle)
binutils 2.46-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 417,696 kB
  • sloc: ansic: 1,487,508; asm: 829,455; cpp: 216,692; exp: 80,527; makefile: 73,165; sh: 24,213; yacc: 15,060; lisp: 13,632; perl: 13,404; lex: 1,714; ada: 1,681; pascal: 1,446; cs: 879; python: 638; java: 478; sed: 191; xml: 95; awk: 25
file content (60 lines) | stat: -rw-r--r-- 1,893 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This shell script emits a C file. -*- C -*-
# Copyright (C) 2017-2026 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the license, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING3. If not,
# see <http://www.gnu.org/licenses/>.
#

# This file is sourced from elf-generic.em, and defines S/390
# specific routines.
#
fragment <<EOF

#include "ldctor.h"
#include "elf-s390.h"

static struct s390_elf_params params = { 0 };

/* This is a convenient point to tell BFD about target specific flags.
   After the output has been created, but before inputs are read.  */
static void
s390_elf_create_output_section_statements (void)
{
  if (!bfd_elf_s390_set_options (&link_info, &params))
    fatal (_("%P: can not init BFD: %E\n"));
}

EOF

# Define some shell vars to insert bits of code into the standard elf
# parse_args and list_options functions.
#
PARSE_AND_LIST_LONGOPTS=${PARSE_AND_LIST_LONGOPTS}'
  { "s390-pgste", no_argument, NULL, OPTION_PGSTE},
'

PARSE_AND_LIST_OPTIONS=${PARSE_AND_LIST_OPTIONS}'
  fprintf (file, _("  --s390-pgste                Tell the kernel to "
		   "allocate 4k page tables\n"));
'

PARSE_AND_LIST_ARGS_CASES=${PARSE_AND_LIST_ARGS_CASES}'
    case OPTION_PGSTE:
      params.pgste = 1;
      break;
'

LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=s390_elf_create_output_section_statements