diff options
author | Alan Modra <amodra@bigpond.net.au> | 2000-02-21 12:01:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2000-02-21 12:01:26 +0000 |
commit | ae867a287c8e0c57a109eef0775e6ff30e56a22c (patch) | |
tree | 3c9ea9e0e46d3e486dc8256878c092a807a868c8 /bfd/section.c | |
parent | fac575e326683066a556b24f1a1d8afb50c5d332 (diff) | |
download | gdb-ae867a287c8e0c57a109eef0775e6ff30e56a22c.tar.gz |
This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings. One usused var, and a macro parenthesis fix too. Also check
input sections are elf when doing gc in elflink.h.
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/section.c b/bfd/section.c index 6e50d168ba2..b3b760802d3 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -508,9 +508,11 @@ CODE_FRAGMENT .extern const struct symbol_cache_entry * const bfd_und_symbol; .extern const struct symbol_cache_entry * const bfd_ind_symbol; .#define bfd_get_section_size_before_reloc(section) \ -. (section->reloc_done ? (abort(),1): (section)->_raw_size) +. ((section)->reloc_done ? (abort (), (bfd_size_type) 1) \ +. : (section)->_raw_size) .#define bfd_get_section_size_after_reloc(section) \ -. ((section->reloc_done) ? (section)->_cooked_size: (abort(),1)) +. ((section)->reloc_done ? (section)->_cooked_size \ +. : (abort (), (bfd_size_type) 1)) */ /* We use a macro to initialize the static asymbol structures because |