Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so/arch/mips fix debug build



details:   https://anonhg.NetBSD.org/src/rev/ab850b371d46
branches:  trunk
changeset: 828654:ab850b371d46
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Dec 24 01:22:16 2017 +0000

description:
fix debug build

diffstat:

 libexec/ld.elf_so/arch/mips/mips_reloc.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r aacf8360ea7b -r ab850b371d46 libexec/ld.elf_so/arch/mips/mips_reloc.c
--- a/libexec/ld.elf_so/arch/mips/mips_reloc.c  Sat Dec 23 22:12:19 2017 +0000
+++ b/libexec/ld.elf_so/arch/mips/mips_reloc.c  Sun Dec 24 01:22:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_reloc.c,v 1.69 2017/08/10 19:03:26 joerg Exp $    */
+/*     $NetBSD: mips_reloc.c,v 1.70 2017/12/24 01:22:16 maya Exp $     */
 
 /*
  * Copyright 1997 Michael L. Hitch <mhitch%montana.edu@localhost>
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mips_reloc.c,v 1.69 2017/08/10 19:03:26 joerg Exp $");
+__RCSID("$NetBSD: mips_reloc.c,v 1.70 2017/12/24 01:22:16 maya Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -413,7 +413,7 @@
 
                        store_ptr(where, val, ELFSIZE / 8);
                        rdbg(("DTPMOD %s in %s --> %p in %s",
-                           obj->strtab + obj->symtab[r_symndx].st_name,
+                           obj->strtab + obj->symtab[ELF_R_SYM(rel->r_info)].st_name,
                            obj->path, (void *)old, defobj->path));
                        break;
                }
@@ -434,7 +434,7 @@
                        store_ptr(where, val, ELFSIZE / 8);
 
                        rdbg(("DTPREL %s in %s --> %p in %s",
-                           obj->strtab + obj->symtab[r_symndx].st_name,
+                           obj->strtab + obj->symtab[ELF_R_SYM(rel->r_info)].st_name,
                            obj->path, (void *)old, defobj->path));
                        break;
                }
@@ -456,7 +456,7 @@
                        store_ptr(where, val, ELFSIZE / 8);
 
                        rdbg(("TPREL %s in %s --> %p in %s",
-                           obj->strtab + obj->symtab[r_symndx].st_name,
+                           obj->strtab + obj->symtab[ELF_R_SYM(rel->r_info)].st_name,
                            obj->path, where, defobj->path));
                        break;
                }
@@ -468,7 +468,7 @@
                            (u_long)ELF_R_TYPE(rel->r_info),
                            (void *)rel->r_offset,
                            (void *)load_ptr(where, sizeof(Elf_Sword)),
-                           obj->strtab + obj->symtab[r_symndx].st_name));
+                           obj->strtab + obj->symtab[ELF_R_SYM(rel->r_info)].st_name));
                        _rtld_error("%s: Unsupported relocation type %ld "
                            "in non-PLT relocations",
                            obj->path, (u_long) ELF_R_TYPE(rel->r_info));



Home | Main Index | Thread Index | Old Index