diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-14 22:20:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-14 22:20:12 +0000 |
commit | 6d93c360042c6c748fc090561c479d1b7bb6d742 (patch) | |
tree | 70056de26390a93f4c2025aff98b487b98275540 /binutils/dlltool.c | |
parent | 204066750f2b8135f496deab156e223d425de6f9 (diff) | |
download | gdb-6d93c360042c6c748fc090561c479d1b7bb6d742.zip gdb-6d93c360042c6c748fc090561c479d1b7bb6d742.tar.gz gdb-6d93c360042c6c748fc090561c479d1b7bb6d742.tar.bz2 |
* dlltool.c (fill_ordinals): Correct memset call.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 8a1e102..421675a 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -214,6 +214,7 @@ int killat; static int verbose; FILE *output_def; FILE *base_file; + #ifdef DLLTOOL_ARM static char *mname = "arm"; #endif @@ -221,6 +222,11 @@ static char *mname = "arm"; #ifdef DLLTOOL_I386 static char *mname = "i386"; #endif + +#ifdef DLLTOOL_PPC +static char *mname = "ppc"; +#endif + #define PATHMAX 250 /* What's the right name for this ? */ /* This bit of assemly does jmp * .... @@ -231,6 +237,11 @@ unsigned char i386_jtab[] = { 0xff, 0x25, 0x00, 0x00, 0x00, 0x00, 0x90, 0x90}; unsigned char arm_jtab[] = { 0x00, 0xc0, 0x9f, 0xe5, 0x00, 0xf0, 0x9c, 0xe5, 0, 0, 0, 0}; +/* If I understand what is going on here, this will need more for ppc + support, but this lets the program start. Kim Knuttila (krk@cygnus.com) */ + +unsigned char ppc_jtab[] = { 0xff, 0x25, 0x00, 0x00, 0x00, 0x00, 0x90, 0x90}; + char outfile[PATHMAX]; struct mac { @@ -268,6 +279,12 @@ mtable[] i386_jtab,sizeof(i386_jtab),2, } , + { +#define MPPC 2 + "ppc", ".byte", ".short", ".long", ".asciz", "#", "jmp *", ".global", ".space", ".align\t2",".align\t4","pe-powerpcle",bfd_arch_powerpc, + ppc_jtab,sizeof(ppc_jtab),2, + } + , { 0} }; @@ -282,6 +299,8 @@ rvaafter (machine) return ""; case M386: return ""; + case MPPC: + return ""; } return ""; } @@ -296,6 +315,8 @@ rvabefore (machine) return ".rva\t"; case M386: return ".rva\t"; + case MPPC: + return ".rva\t"; } return ""; } @@ -310,6 +331,8 @@ int machine; return ""; case M386: return "_"; + case MPPC: + return ""; } return ""; } @@ -1694,7 +1717,7 @@ fill_ordinals (d_export_vec) ptr = (char *) malloc (65536); - memset (ptr, 65536, 0); + memset (ptr, 0, 65536); /* Mark in our large vector all the numbers that are taken */ for (i = 0; i < d_nfuncs; i++) |