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/sparc64 Comment reformat.



details:   https://anonhg.NetBSD.org/src/rev/0f7c6024a4e0
branches:  trunk
changeset: 757806:0f7c6024a4e0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 24 12:00:10 2010 +0000

description:
Comment reformat.

diffstat:

 libexec/ld.elf_so/arch/sparc64/mdreloc.c |  22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diffs (51 lines):

diff -r 69ff3aede0ba -r 0f7c6024a4e0 libexec/ld.elf_so/arch/sparc64/mdreloc.c
--- a/libexec/ld.elf_so/arch/sparc64/mdreloc.c  Fri Sep 24 11:59:28 2010 +0000
+++ b/libexec/ld.elf_so/arch/sparc64/mdreloc.c  Fri Sep 24 12:00:10 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdreloc.c,v 1.49 2010/09/24 11:59:28 skrll Exp $       */
+/*     $NetBSD: mdreloc.c,v 1.50 2010/09/24 12:00:10 skrll Exp $       */
 
 /*-
  * Copyright (c) 2000 Eduardo Horvath.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.49 2010/09/24 11:59:28 skrll Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.50 2010/09/24 12:00:10 skrll Exp $");
 #endif /* not lint */
 
 #include <errno.h>
@@ -526,9 +526,8 @@
            defobj->strtab + def->st_name, (void *)value));
 
        /*
-        * At the PLT entry pointed at by `where', we now construct
-        * a direct transfer to the now fully resolved function
-        * address.
+        * At the PLT entry pointed at by `where', we now construct a direct
+        * transfer to the now fully resolved function address.
         *
         * A PLT entry is supposed to start by looking like this:
         *
@@ -541,14 +540,13 @@
         *      nop
         *      nop
         *
-        * When we replace these entries we start from the second
-        * entry and do it in reverse order so the last thing we
-        * do is replace the branch.  That allows us to change this
-        * atomically.
+        * When we replace these entries we start from the last instruction
+        * and do it in reverse order so the last thing we do is replace the
+        * branch.  That allows us to change this atomically.
         *
-        * We now need to find out how far we need to jump.  We
-        * have a choice of several different relocation techniques
-        * which are increasingly expensive.
+        * We now need to find out how far we need to jump.  We have a choice
+        * of several different relocation techniques which are increasingly
+        * expensive.
         */
 
        offset = ((Elf_Addr)where) - value;



Home | Main Index | Thread Index | Old Index