aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-m68k.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-15 09:44:59 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-15 09:44:59 +0000
commit5f9ca9603825b26fca8625e98e34e75aa599f26f (patch)
treed5b5adf2cecc2c3c0bb325af699c3f1bb983ce36 /bfd/coff-m68k.c
parentf8e01940189dfd4a06f8818d4442ce6d39fd9539 (diff)
downloadgdb-5f9ca9603825b26fca8625e98e34e75aa599f26f.zip
gdb-5f9ca9603825b26fca8625e98e34e75aa599f26f.tar.gz
gdb-5f9ca9603825b26fca8625e98e34e75aa599f26f.tar.bz2
* aout-adobe.c, aoutf1.h, aoutx.h, bout.c coff-m68k.c, coff-z8k.c,
coffcode.h, elf.c, libaout.h, libbfd.h, srec.c: Lint.
Diffstat (limited to 'bfd/coff-m68k.c')
-rw-r--r--bfd/coff-m68k.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/bfd/coff-m68k.c b/bfd/coff-m68k.c
index 891e7a3..f357fea 100644
--- a/bfd/coff-m68k.c
+++ b/bfd/coff-m68k.c
@@ -44,22 +44,21 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define BADMAG(x) M68KBADMAG(x)
#define M68 1 /* Customize coffcode.h */
+void
m68k_rtype2howto(internal, relocentry)
-arelent *internal;
-int relocentry;
+ arelent *internal;
+ int relocentry;
{
switch (relocentry)
{
- case R_RELBYTE: (internal)->howto = ( m68kcoff_howto_table + 0);break;
- case R_RELWORD: (internal)->howto = ( m68kcoff_howto_table + 1);break;
- case R_RELLONG: (internal)->howto = ( m68kcoff_howto_table + 2);break;
- case R_PCRBYTE: (internal)->howto = ( m68kcoff_howto_table + 3);break;
- case R_PCRWORD: (internal)->howto = ( m68kcoff_howto_table + 4);break;
- case R_PCRLONG: (internal)->howto = ( m68kcoff_howto_table + 5);break;
- case R_RELLONG_NEG: (internal)->howto = ( m68kcoff_howto_table + 6);break;
+ case R_RELBYTE: internal->howto = m68kcoff_howto_table + 0; break;
+ case R_RELWORD: internal->howto = m68kcoff_howto_table + 1; break;
+ case R_RELLONG: internal->howto = m68kcoff_howto_table + 2; break;
+ case R_PCRBYTE: internal->howto = m68kcoff_howto_table + 3; break;
+ case R_PCRWORD: internal->howto = m68kcoff_howto_table + 4; break;
+ case R_PCRLONG: internal->howto = m68kcoff_howto_table + 5; break;
+ case R_RELLONG_NEG: internal->howto = m68kcoff_howto_table + 6; break;
}
-
-
}
#define RTYPE2HOWTO(internal, relocentry) m68k_rtype2howto(internal, (relocentry)->r_type)