| 1 | /* ldlang.h - linker command language support
|
|---|
| 2 | Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|---|
| 3 | 2001
|
|---|
| 4 | Free Software Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | This file is part of GLD, the Gnu Linker.
|
|---|
| 7 |
|
|---|
| 8 | GLD is free software; you can redistribute it and/or modify
|
|---|
| 9 | it under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 1, or (at your option)
|
|---|
| 11 | any later version.
|
|---|
| 12 |
|
|---|
| 13 | GLD is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with GLD; see the file COPYING. If not, write to the Free
|
|---|
| 20 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|---|
| 21 | 02111-1307, USA. */
|
|---|
| 22 |
|
|---|
| 23 | #ifndef LDLANG_H
|
|---|
| 24 | #define LDLANG_H
|
|---|
| 25 |
|
|---|
| 26 | typedef enum {
|
|---|
| 27 | lang_input_file_is_l_enum,
|
|---|
| 28 | lang_input_file_is_symbols_only_enum,
|
|---|
| 29 | lang_input_file_is_marker_enum,
|
|---|
| 30 | lang_input_file_is_fake_enum,
|
|---|
| 31 | lang_input_file_is_search_file_enum,
|
|---|
| 32 | lang_input_file_is_file_enum
|
|---|
| 33 | } lang_input_file_enum_type;
|
|---|
| 34 |
|
|---|
| 35 | typedef unsigned int fill_type;
|
|---|
| 36 |
|
|---|
| 37 | typedef struct statement_list {
|
|---|
| 38 | union lang_statement_union *head;
|
|---|
| 39 | union lang_statement_union **tail;
|
|---|
| 40 | } lang_statement_list_type;
|
|---|
| 41 |
|
|---|
| 42 | typedef struct memory_region_struct {
|
|---|
| 43 | char *name;
|
|---|
| 44 | struct memory_region_struct *next;
|
|---|
| 45 | bfd_vma origin;
|
|---|
| 46 | bfd_size_type length;
|
|---|
| 47 | bfd_vma current;
|
|---|
| 48 | bfd_size_type old_length;
|
|---|
| 49 | flagword flags;
|
|---|
| 50 | flagword not_flags;
|
|---|
| 51 | boolean had_full_message;
|
|---|
| 52 | } lang_memory_region_type;
|
|---|
| 53 |
|
|---|
| 54 | typedef struct lang_statement_header_struct {
|
|---|
| 55 | union lang_statement_union *next;
|
|---|
| 56 | enum statement_enum {
|
|---|
| 57 | lang_output_section_statement_enum,
|
|---|
| 58 | lang_assignment_statement_enum,
|
|---|
| 59 | lang_input_statement_enum,
|
|---|
| 60 | lang_address_statement_enum,
|
|---|
| 61 | lang_wild_statement_enum,
|
|---|
| 62 | lang_input_section_enum,
|
|---|
| 63 | lang_object_symbols_statement_enum,
|
|---|
| 64 | lang_fill_statement_enum,
|
|---|
| 65 | lang_data_statement_enum,
|
|---|
| 66 | lang_reloc_statement_enum,
|
|---|
| 67 | lang_target_statement_enum,
|
|---|
| 68 | lang_output_statement_enum,
|
|---|
| 69 | lang_padding_statement_enum,
|
|---|
|
|---|