aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
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/bfd-in2.h
parent261a45adfff7bb0c49b661d7416eee3cfc2d2115 (diff)
downloadgdb-84c254c6468727c14abf8f639a2605d5a08f4a14.zip
gdb-84c254c6468727c14abf8f639a2605d5a08f4a14.tar.gz
gdb-84c254c6468727c14abf8f639a2605d5a08f4a14.tar.bz2
Define and use bfd_is_const_section().
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index b99a3d4..5f61853 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1354,6 +1354,12 @@ extern const asection bfd_ind_section;
#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;