diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-01-26 19:54:07 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-01-26 19:54:07 +0000 |
commit | 382f2a3d75c1c09a1b63334d045d13f621a7a32b (patch) | |
tree | 442bc4c34e322ef510e5856c37cff5529f67cbf5 /bfd/bout.c | |
parent | 388d8904711324aeccbfb9ef25851b15905f3736 (diff) | |
download | gdb-382f2a3d75c1c09a1b63334d045d13f621a7a32b.zip gdb-382f2a3d75c1c09a1b63334d045d13f621a7a32b.tar.gz gdb-382f2a3d75c1c09a1b63334d045d13f621a7a32b.tar.bz2 |
Tue Jan 26 11:43:14 1993 Ian Lance Taylor (ian@cygnus.com)
* section.c (SEC_IS_COMMON): New section flag, needed for MIPS
ECOFF which has two common sections.
(bfd_com_section): Set SEC_IS_COMMON flag.
* bfd-in.h (bfd_is_com_section): New macro to test SEC_IS_COMMON.
* aoutx.h, archive.c, bout.c, coff-a29k.c, coff-m88k.c,
coff-mips.c, coffgen.c, ieee.c, oasys.c, reloc.c, syms.: Use
bfd_is_com_section macro rather than checking for equality to
bfd_com_section.
Diffstat (limited to 'bfd/bout.c')
-rw-r--r-- | bfd/bout.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -522,11 +522,11 @@ b_out_slurp_reloc_table (abfd, asect, symbols) cache_ptr->howto = 0; if (abfd->xvec->header_byteorder_big_p) { - symnum = ((int) raw[4] << 16) | ((int) raw[5] << 8) | (int) raw[6]; + symnum = (raw[4] << 16) | (raw[5] << 8) | raw[6]; } else { - symnum = ((int) raw[6] << 16) | ((int) raw[5] << 8) | (int) raw[4]; + symnum = (raw[6] << 16) | (raw[5] << 8) | raw[4]; } if (raw[7] & extern_mask) @@ -745,7 +745,7 @@ b_out_squirt_out_relocs (abfd, section) if (r_idx != 0) /* already mucked with r_extern, r_idx */; - else if (output_section == &bfd_com_section + else if (bfd_is_com_section (output_section) || output_section == &bfd_abs_section || output_section == &bfd_und_section) { |