Skip to content

Commit

Permalink
[PATCH] ppc64: fix reloc_offset comment
Browse files Browse the repository at this point in the history
The code in reloc_offset is actually subtracting the address in the link
register from the address calculated by the linker.  Perhaps the
extended mnemonic `sub' replaced an original `subf' and the comment just
did not get updated.

        bl      1f
1:      mflr    r3
        LOADADDR(r4,1b)
        sub     r3,r4,r3

Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
paulusmack authored and Linus Torvalds committed May 6, 2005
1 parent 3892c5f commit 5e2afc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/misc.S
Expand Up @@ -32,7 +32,7 @@
.text

/*
* Returns (address we're running at) - (address we were linked at)
* Returns (address we were linked at) - (address we are running at)
* for use before the text and data are mapped to KERNELBASE.
*/

Expand Down

0 comments on commit 5e2afc1

Please sign in to comment.