Source-Changes-HG archive

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

[src/trunk]: src/sys/rump The global offset table is spelled .TOC. on PPC64, ...



details:   https://anonhg.NetBSD.org/src/rev/3ab8fda81b50
branches:  trunk
changeset: 1007473:3ab8fda81b50
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 20 22:52:10 2020 +0000

description:
The global offset table is spelled .TOC. on PPC64, so preserve that symbol.

diffstat:

 sys/rump/Makefile.rump                  |  4 ++--
 sys/rump/librump/rumpkern/kobj_rename.c |  5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r a30fe7d5c05b -r 3ab8fda81b50 sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Thu Feb 20 22:38:54 2020 +0000
+++ b/sys/rump/Makefile.rump    Thu Feb 20 22:52:10 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rump,v 1.124 2018/03/03 22:46:30 christos Exp $
+#      $NetBSD: Makefile.rump,v 1.125 2020/02/20 22:52:10 joerg Exp $
 #
 
 .if !defined(_RUMP_MK)
@@ -235,7 +235,7 @@
 .endif
        for renameobj in ${RUMP_SYMREN:U${.ALLSRC:C/(${RUMPOBJ_NORENAME:ts|})//g}}; do \
                ${NM} -go $${renameobj} | ${TOOL_AWK} ' \
-                   $$NF!~/^'${_PQ}'(rump|RUMP|__|_GLOBAL_OFFSET_TABLE'${_SYMQUIRK}'${RUMP_SYM_NORENAME:D|${RUMP_SYM_NORENAME}})/ \
+                   $$NF!~/^'${_PQ}'(rump|RUMP|__|_GLOBAL_OFFSET_TABLE|\.TOC\.'${_SYMQUIRK}'${RUMP_SYM_NORENAME:D|${RUMP_SYM_NORENAME}})/ \
                      {s=$$NF;sub(/^'${_PQ}'/, "&rumpns_", s); print $$NF, s}'\
                    | sort | uniq  > renametab.$${renameobj}; \
                ${OBJCOPY} --preserve-dates --redefine-syms \
diff -r a30fe7d5c05b -r 3ab8fda81b50 sys/rump/librump/rumpkern/kobj_rename.c
--- a/sys/rump/librump/rumpkern/kobj_rename.c   Thu Feb 20 22:38:54 2020 +0000
+++ b/sys/rump/librump/rumpkern/kobj_rename.c   Thu Feb 20 22:52:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kobj_rename.c,v 1.2 2014/04/25 18:31:35 pooka Exp $    */
+/*     $NetBSD: kobj_rename.c,v 1.3 2020/02/20 22:52:10 joerg Exp $    */
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kobj_rename.c,v 1.2 2014/04/25 18:31:35 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj_rename.c,v 1.3 2020/02/20 22:52:10 joerg Exp $");
 
 #define ELFSIZE ARCH_ELFSIZE
 
@@ -49,6 +49,7 @@
        "rump",
        "__",
        "_GLOBAL_OFFSET_TABLE",
+       ".TOC.",
 };
 static int
 norename(const char *name)



Home | Main Index | Thread Index | Old Index