1 /* Copyright (C) 1991 Free Software Foundation, Inc.
3 This file is part of GLD, the Gnu Linker.
5 GLD is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 1, or (at your option)
10 GLD is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GLD; see the file COPYING. If not, write to
17 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* This bit does the tree decoration when MRI style link scripts are parsed */
23 contributed by Steve Chamberlain
35 DEFUN(mri_output_section, (name, vma),
40 lang_output_section_statement_type *os;
42 os = lang_output_section_statement_lookup(name);
44 if (os->addr_tree == (etree_type *)NULL) {
52 /* if any ABSOLUTE <name> are in the script, only load those files
55 void DEFUN(mri_only_load,(name), CONST char *name)
57 lang_output_section_statement_type *os;
59 os = lang_output_section_statement_lookup(name);
68 DEFUN(mri_load,(name),
72 lang_add_input_file(name, lang_input_file_is_file_enum, (char *)NULL);
77 DEFUN(mri_order,(name),
80 einfo("Ignoring ORDER %s for the moment\n", name);
85 DEFUN(mri_name,(name),
88 lang_add_output(name);
94 DEFUN(mri_format,(name),
97 if (strcmp(name, "S") == 0)
99 lang_add_output_format("srec");
101 else if (strcmp(name, "IEEE") == 0)
103 lang_add_output_format("ieee");
106 einfo("%P%F: unknown format type %s\n", name);