summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2012-03-12 20:58:09 +0000
committergonzo <gonzo@FreeBSD.org>2012-03-12 20:58:09 +0000
commit0aab978e5682e6f8de4de4afbaeab1811ff4e0d4 (patch)
tree6112866a6098f8f011c50300d322be76736bc9a7 /libexec
parent7a6ef61eacf136900ffdcc2815b420cce3b5faa5 (diff)
downloadFreeBSD-src-0aab978e5682e6f8de4de4afbaeab1811ff4e0d4.zip
FreeBSD-src-0aab978e5682e6f8de4de4afbaeab1811ff4e0d4.tar.gz
Use PTR_(ADD|SUB)U macrosses instead of hardcoded addu/subu
Spotted by: juli
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/mips/rtld_start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/mips/rtld_start.S b/libexec/rtld-elf/mips/rtld_start.S
index 631f641..eb7196f 100644
--- a/libexec/rtld-elf/mips/rtld_start.S
+++ b/libexec/rtld-elf/mips/rtld_start.S
@@ -68,11 +68,11 @@ LEAF(rtld_start)
move a0, s0 /* sp */
PTR_ADDU a1, sp, 2*PTR_SIZE /* &our atexit function */
PTR_ADDU a2, sp, 3*PTR_SIZE /* obj_main entry */
- subu sp, 4*SZREG /* ABI requires to reserve memory for 4 regs */
+ PTR_SUBU sp, 4*SZREG /* ABI requires to reserve memory for 4 regs */
PTR_LA t9, _C_LABEL(_rtld)
jalr t9 /* v0 = _rtld(sp, cleanup, objp) */
nop
- addu sp, 4*SZREG
+ PTR_ADDU sp, 4*SZREG
PTR_L a1, 2*PTR_SIZE(sp) /* our atexit function */
PTR_L a2, 3*PTR_SIZE(sp) /* obj_main entry */
OpenPOWER on IntegriCloud