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/bfd-in2.h | |
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/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 6 |
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; |