diff options
author | Alan Modra <amodra@gmail.com> | 2012-05-05 03:05:32 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-05-05 03:05:32 +0000 |
commit | 45dfa85a1ee44000d43abb7945a4aa7631707563 (patch) | |
tree | 4fbcbb79f675fb33e849112175102446d2fc8e64 /bfd/riscix.c | |
parent | 3ea17611f9c0a265d51cbdd4d0989b12c11aaad4 (diff) | |
download | gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.zip gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.gz gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.bz2 |
Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
and bfd_ind_section with their _ptr variants, or use corresponding
bfd_is_* macros.
Diffstat (limited to 'bfd/riscix.c')
-rw-r--r-- | bfd/riscix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/riscix.c b/bfd/riscix.c index 0d07d01..7e24fd9 100644 --- a/bfd/riscix.c +++ b/bfd/riscix.c @@ -1,6 +1,6 @@ /* BFD back-end for RISC iX (Acorn, arm) binaries. Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, - 2005, 2007, 2010 Free Software Foundation, Inc. + 2005, 2007, 2010, 2012 Free Software Foundation, Inc. Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) This file is part of BFD, the Binary File Descriptor library. @@ -207,7 +207,7 @@ riscix_fix_pcrel_26 (bfd *abfd, bfd_reloc_status_type flag = bfd_reloc_ok; /* If this is an undefined symbol, return error. */ - if (symbol->section == &bfd_und_section + if (bfd_is_und_section (symbol->section) && (symbol->flags & BSF_WEAK) == 0) return output_bfd ? bfd_reloc_continue : bfd_reloc_undefined; @@ -341,10 +341,10 @@ riscix_swap_std_reloc_out (bfd *abfd, check for that here. */ if (bfd_is_com_section (output_section) - || output_section == & bfd_abs_section - || output_section == & bfd_und_section) + || bfd_is_abs_section (output_section) + || bfd_is_und_section (output_section)) { - if (bfd_abs_section.symbol == sym) + if (bfd_abs_section_ptr->symbol == sym) { /* Whoops, looked like an abs symbol, but is really an offset from the abs section. */ |