Rename elf32.em to elf.em
[deliverable/binutils-gdb.git] / ld / emultempl / elf-x86.em
1 # This shell script emits a C file. -*- C -*-
2 # Copyright (C) 2019 Free Software Foundation, Inc.
3 #
4 # This file is part of the GNU Binutils.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the license, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; see the file COPYING3. If not,
18 # see <http://www.gnu.org/licenses/>.
19 #
20
21 # This file is sourced from elf.em, and defines x86 specific routines.
22 #
23 fragment <<EOF
24
25 #include "elf-linker-x86.h"
26
27 static struct elf_linker_x86_params params;
28
29 /* This is a convenient point to tell BFD about target specific flags.
30 After the output has been created, but before inputs are read. */
31
32 static void
33 elf_x86_create_output_section_statements (void)
34 {
35 _bfd_elf_linker_x86_set_options (&link_info, &params);
36 }
37
38 EOF
39
40 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=elf_x86_create_output_section_statements
41
42 if test -n "$CALL_NOP_BYTE"; then
43
44 fragment <<EOF
45
46 static void
47 elf_x86_before_parse (void)
48 {
49 params.call_nop_byte = $CALL_NOP_BYTE;
50
51 gld${EMULATION_NAME}_before_parse ();
52 }
53
54 EOF
55
56 LDEMUL_BEFORE_PARSE=elf_x86_before_parse
57 fi
This page took 0.032199 seconds and 4 git commands to generate.