diff options
author | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
commit | f6af82bd4470673eef9562d4ed3a2717c1d749ab (patch) | |
tree | 049fedd33d8bf74259017f441ef55ee8920b9cc2 /bfd/section.c | |
parent | 2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff) | |
download | gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2 |
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 6e50d16..b3b7608 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 |