aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-05-14 16:00:38 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-05-14 16:00:38 +0000
commit86a4952b1461aa668cb0fd55ececbb691eefdb12 (patch)
treeafd628fcab7f1e562ca72100b4a42b5d60da9c21 /bfd/elf32-ppc.c
parent8944f3c2775287a2e34027b8ce4d2823eb304013 (diff)
downloadgdb-86a4952b1461aa668cb0fd55ececbb691eefdb12.zip
gdb-86a4952b1461aa668cb0fd55ececbb691eefdb12.tar.gz
gdb-86a4952b1461aa668cb0fd55ececbb691eefdb12.tar.bz2
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls.
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 218a7ca..2dafde7 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -2464,7 +2464,7 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms,
}
/* Add a symbol at the start of the glink branch table. */
- memset (s, sizeof *s, 0);
+ memset (s, 0, sizeof *s);
s->the_bfd = abfd;
s->flags = BSF_GLOBAL;
s->section = glink;
@@ -2478,7 +2478,7 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms,
if (resolv_vma)
{
/* Add a symbol for the glink PLT resolver. */
- memset (s, sizeof *s, 0);
+ memset (s, 0, sizeof *s);
s->the_bfd = abfd;
s->flags = BSF_GLOBAL;
s->section = glink;