From 6570591484e887e377ab0fb919482c53d7d947cf Mon Sep 17 00:00:00 2001 From: gonzo Date: Mon, 12 Mar 2012 20:58:09 +0000 Subject: [PATCH 138/175] Use PTR_(ADD|SUB)U macrosses instead of hardcoded addu/subu Spotted by: juli git-svn-id: http://svn.freebsd.org/base/head@232892 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f (cherry picked from commit f1a89ab21a7388e6a0d64548282fc2d5c549e9c5) Signed-off-by: Xin Li --- libexec/rtld-elf/mips/rtld_start.S | 4 ++-- 1 file 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 */ -- 1.7.9.4