From 409d7240c75181b16af5a78b2aa1aef71003a025 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 9 Jun 2006 01:13:39 +0000 Subject: * ldlang.h (lang_input_statement_type): Use bitfields for booleans. * ldlang.c (struct out_section_hash_entry): Rename from output_statement_hash_entry. Delete output_section_statement_type entry. Add statement_union_type entry. Adjust all users. (output_section_statement_table): Rename from output_statement_table. Adjust all users. (output_section_statement_newfunc): Rename from output_statement_newfunc. Adjust all users. (output_section_statement_table_init): Rename from output_statement_table_init. Adjust all users. (output_section_statement_table_free): Rename from output_statement_table_free. Adjust all users. --- ld/ldlang.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'ld/ldlang.h') diff --git a/ld/ldlang.h b/ld/ldlang.h index 2245f5a..1cf0e7c 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -228,7 +228,6 @@ typedef struct lang_input_statement_struct bfd *the_bfd; - bfd_boolean closed; file_ptr passive_position; /* Symbol table of the file. */ @@ -242,40 +241,42 @@ typedef struct lang_input_statement_struct /* Point to the next file, but skips archive contents. */ union lang_statement_union *next_real_file; - bfd_boolean is_archive; + const char *target; + + unsigned int closed : 1; + unsigned int is_archive : 1; /* 1 means search a set of directories for this file. */ - bfd_boolean search_dirs_flag; + unsigned int search_dirs_flag : 1; /* 1 means this was found in a search directory marked as sysrooted, if search_dirs_flag is false, otherwise, that it should be searched in ld_sysroot before any other location, as long as it starts with a slash. */ - bfd_boolean sysrooted; + unsigned int sysrooted : 1; /* 1 means this is base file of incremental load. Do not load this file's text or data. Also default text_start to after this file's bss. */ - bfd_boolean just_syms_flag; + unsigned int just_syms_flag : 1; /* Whether to search for this entry as a dynamic archive. */ - bfd_boolean dynamic; + unsigned int dynamic : 1; /* Whether DT_NEEDED tags should be added for dynamic libraries in DT_NEEDED tags from this entry. */ - bfd_boolean add_needed; + unsigned int add_needed : 1; /* Whether this entry should cause a DT_NEEDED tag only when satisfying references from regular files, or always. */ - bfd_boolean as_needed; + unsigned int as_needed : 1; /* Whether to include the entire contents of an archive. */ - bfd_boolean whole_archive; + unsigned int whole_archive : 1; - bfd_boolean loaded; + unsigned int loaded : 1; - const char *target; - bfd_boolean real; + unsigned int real : 1; } lang_input_statement_type; typedef struct -- cgit v1.1