diff options
author | Nick Clifton <nickc@redhat.com> | 2001-11-19 15:35:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-11-19 15:35:38 +0000 |
commit | 84c254c6468727c14abf8f639a2605d5a08f4a14 (patch) | |
tree | f28e0b7b814c9ccb21fc49bfc42efe18b7274d91 /bfd/section.c | |
parent | 261a45adfff7bb0c49b661d7416eee3cfc2d2115 (diff) | |
download | gdb-84c254c6468727c14abf8f639a2605d5a08f4a14.zip gdb-84c254c6468727c14abf8f639a2605d5a08f4a14.tar.gz gdb-84c254c6468727c14abf8f639a2605d5a08f4a14.tar.bz2 |
Define and use bfd_is_const_section().
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/section.c b/bfd/section.c index 0d95f11..903f769 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -544,6 +544,12 @@ CODE_FRAGMENT .#define bfd_ind_section_ptr ((asection *) &bfd_ind_section) .#define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr) . +.#define bfd_is_const_section(SEC) \ +. ( ((SEC) == bfd_abs_section_ptr) \ +. || ((SEC) == bfd_und_section_ptr) \ +. || ((SEC) == bfd_com_section_ptr) \ +. || ((SEC) == bfd_ind_section_ptr)) +. .extern const struct symbol_cache_entry * const bfd_abs_symbol; .extern const struct symbol_cache_entry * const bfd_com_symbol; .extern const struct symbol_cache_entry * const bfd_und_symbol; |