diff options
author | Steve Chamberlain <sac@cygnus> | 1992-01-30 15:30:34 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-01-30 15:30:34 +0000 |
commit | 21a7f8b6dec4e1784d62332730da45dd91bdae59 (patch) | |
tree | ea883d11dfb298bc33e8020ce006b6ad84194e31 | |
parent | d89b9f991bb9b322cb1ea0995b2648aca9606cd9 (diff) | |
download | gdb-21a7f8b6dec4e1784d62332730da45dd91bdae59.zip gdb-21a7f8b6dec4e1784d62332730da45dd91bdae59.tar.gz gdb-21a7f8b6dec4e1784d62332730da45dd91bdae59.tar.bz2 |
Various lints found on PersSony
* aoutx.h: cast an enum
* coff-a29k.c: many ints in reloc structure turned to enum
* coffcode.h: more enums
* cpu-h8300.c: more enums
* opncls.c: more enums
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/coff-a29k.c | 19 |
2 files changed, 19 insertions, 9 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0a056bb..11c24d0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +Thu Jan 30 07:26:53 1992 Steve Chamberlain (sac at rtl.cygnus.com) + + Various lints found on PersSony + * aoutx.h: cast an enum + * coff-a29k.c: many ints in reloc structure turned to enum + * coffcode.h: more enums + * cpu-h8300.c: more enums + * opncls.c: more enums + Thu Jan 30 01:19:56 1992 John Gilmore (gnu at cygnus.com) * configure.in: Make Tahoe configuration work again. diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index c3ac63c..a73e172 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -213,20 +213,21 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section), /*FIXME: I'm not real sure about this table */ #define NA 0 /* Obsolete fields, via the documentation */ +#define NAB false static reloc_howto_type howto_table[] = { - {R_ABS, 0, 3, NA, false, NA, NA, true,a29k_reloc,"ABS", true, 0xffffffff,0xffffffff, false}, + {R_ABS, 0, 3, NA, false, NA, NAB, true,a29k_reloc,"ABS", true, 0xffffffff,0xffffffff, false}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12}, {13}, {14}, {15}, {16}, {17}, {18}, {19}, {20}, {21}, {22}, {23}, - {R_IREL, 0, 3, NA, true, NA, NA, true,a29k_reloc,"IREL", true, 0xffffffff,0xffffffff, false}, - {R_IABS, 0, 3, NA, false, NA, NA, true,a29k_reloc,"IABS", true, 0xffffffff,0xffffffff, false}, - {R_ILOHALF, 0, 3, NA, true, NA, NA, true,a29k_reloc,"ILOHALF", true, 0x0000ffff,0x0000ffff, false}, - {R_IHIHALF, 0, 3, NA, true, NA, NA, true,a29k_reloc,"IHIHALF", true, 0xffff0000,0xffff0000, false}, - {R_IHCONST, 0, 3, NA, true, NA, NA, true,a29k_reloc,"IHCONST", true, 0xffff0000,0xffff0000, false}, - {R_BYTE, 0, 0, NA, false, NA, NA, true,a29k_reloc,"BYTE", true, 0x000000ff,0x000000ff, false}, - {R_HWORD, 0, 1, NA, false, NA, NA, true,a29k_reloc,"HWORD", true, 0x0000ffff,0x0000ffff, false}, - {R_WORD, 0, 2, NA, false, NA, NA, true,a29k_reloc,"WORD", true, 0xffffffff,0xffffffff, false}, + {R_IREL, 0, 3, NA, true, NA, NAB, true,a29k_reloc,"IREL", true, 0xffffffff,0xffffffff, false}, + {R_IABS, 0, 3, NA, false, NA, NAB, true,a29k_reloc,"IABS", true, 0xffffffff,0xffffffff, false}, + {R_ILOHALF, 0, 3, NA, true, NA, NAB, true,a29k_reloc,"ILOHALF", true, 0x0000ffff,0x0000ffff, false}, + {R_IHIHALF, 0, 3, NA, true, NA, NAB, true,a29k_reloc,"IHIHALF", true, 0xffff0000,0xffff0000, false}, + {R_IHCONST, 0, 3, NA, true, NA, NAB, true,a29k_reloc,"IHCONST", true, 0xffff0000,0xffff0000, false}, + {R_BYTE, 0, 0, NA, false, NA, NAB, true,a29k_reloc,"BYTE", true, 0x000000ff,0x000000ff, false}, + {R_HWORD, 0, 1, NA, false, NA, NAB, true,a29k_reloc,"HWORD", true, 0x0000ffff,0x0000ffff, false}, + {R_WORD, 0, 2, NA, false, NA, NAB, true,a29k_reloc,"WORD", true, 0xffffffff,0xffffffff, false}, }; #undef NA |