* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 14 May 2008 16:00:38 +0000 (16:00 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 14 May 2008 16:00:38 +0000 (16:00 +0000)
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.

bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c

index fa42524685ff6ddbd341f9bbb0fe248bfd881bdc..7f8f32923351cb5b5b3510485858c4a1640e980b 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls.
+       * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
+
 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
 
        * Makefile.am: Run "make dep-am".
index 218a7cab5c95d7e8a7adf148f4e42d28d01cb977..2dafde7d0d8604a1c37b3156547fb17b7b346791 100644 (file)
@@ -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;
index 9b11c37eb136f7d709a0189454bbe82911f0041a..8a26c8daffd55118734d384c13038f5003db9bc2 100644 (file)
@@ -3143,7 +3143,7 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
          if (resolv_vma)
            {
              /* Add a symbol for the main glink trampoline.  */
-             memset (s, sizeof *s, 0);
+             memset (s, 0, sizeof *s);
              s->the_bfd = abfd;
              s->flags = BSF_GLOBAL;
              s->section = glink;
This page took 0.061076 seconds and 4 git commands to generate.