aboutsummaryrefslogtreecommitdiff
path: root/bfd/section.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-11-19 15:35:38 +0000
committerNick Clifton <nickc@redhat.com>2001-11-19 15:35:38 +0000
commit84c254c6468727c14abf8f639a2605d5a08f4a14 (patch)
treef28e0b7b814c9ccb21fc49bfc42efe18b7274d91 /bfd/section.c
parent261a45adfff7bb0c49b661d7416eee3cfc2d2115 (diff)
downloadgdb-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.c6
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;