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 RISC-V support.



details:   https://anonhg.NetBSD.org/src/rev/4320baf3c0c1
branches:  trunk
changeset: 332407:4320baf3c0c1
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 19 17:43:33 2014 +0000

description:
RISC-V support.

diffstat:

 libexec/ld.elf_so/Makefile |  3 ++-
 libexec/ld.elf_so/rtld.h   |  4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r b31d606f7a5c -r 4320baf3c0c1 libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile        Fri Sep 19 17:42:44 2014 +0000
+++ b/libexec/ld.elf_so/Makefile        Fri Sep 19 17:43:33 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.128 2014/09/03 19:31:32 matt Exp $
+#      $NetBSD: Makefile,v 1.129 2014/09/19 17:43:33 matt Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -36,6 +36,7 @@
      (${MACHINE_CPU} == "mips") ||                                     \
      (${MACHINE_CPU} == "or1k") ||                                     \
      (${MACHINE_CPU} == "powerpc") ||                                  \
+     (${MACHINE_CPU} == "riscv") ||                                    \
      (${MACHINE_CPU} == "sh3") ||                                      \
      (${LDELFSO_MACHINE_ARCH} == "sparc") ||                           \
      (${LDELFSO_MACHINE_ARCH} == "sparc64") ||                         \
diff -r b31d606f7a5c -r 4320baf3c0c1 libexec/ld.elf_so/rtld.h
--- a/libexec/ld.elf_so/rtld.h  Fri Sep 19 17:42:44 2014 +0000
+++ b/libexec/ld.elf_so/rtld.h  Fri Sep 19 17:43:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.h,v 1.123 2014/08/27 04:07:04 christos Exp $       */
+/*     $NetBSD: rtld.h,v 1.124 2014/09/19 17:43:33 matt Exp $   */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -179,7 +179,7 @@
        const Elf_Sym  *symtab;         /* Symbol table */
        const char     *strtab;         /* String table */
        unsigned long   strsize;        /* Size in bytes of string table */
-#ifdef __mips__
+#if defined(__mips__) || defined(__riscv__)
        Elf_Word        local_gotno;    /* Number of local GOT entries */
        Elf_Word        symtabno;       /* Number of dynamic symbols */
        Elf_Word        gotsym;         /* First dynamic symbol in GOT */



Home | Main Index | Thread Index | Old Index