* ldlang.h (struct lang_input_statement_flags): Add pushed

member.
        * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
        OPTION_POP_STATE.
        * lexsup.c (ld_options): Add entries for --push-state and
        --pop-state.
        (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
        * ld.texinfo: Document --push-state and --pop-state.
This commit is contained in:
Ulrich Drepper
2014-08-08 20:26:41 -04:00
parent 236bbb8388
commit 26278bb871
5 changed files with 67 additions and 0 deletions

View File

@@ -282,6 +282,9 @@ struct lang_input_statement_flags
/* Set if reloading an archive or --as-needed lib. */
unsigned int reload : 1;
#endif /* ENABLE_PLUGINS */
/* Head of list of pushed flags. */
struct lang_input_statement_flags *pushed;
};
typedef struct lang_input_statement_struct