aboutsummaryrefslogtreecommitdiff
path: root/glibc
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-12-20 22:11:57 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-12-20 22:11:57 -0800
commit54ebdae37919bfaaa3f09cfc9d6982fc7528b53e (patch)
treef01ec4f30644c3118cc05b4f06cc9900f5076e6b /glibc
parente03c7c96b4f9c87034848679dafbc76131966932 (diff)
downloadriscv-gnu-toolchain-54ebdae37919bfaaa3f09cfc9d6982fc7528b53e.zip
riscv-gnu-toolchain-54ebdae37919bfaaa3f09cfc9d6982fc7528b53e.tar.gz
riscv-gnu-toolchain-54ebdae37919bfaaa3f09cfc9d6982fc7528b53e.tar.bz2
binutils: rework jump pseudoisntruction
"jump" was renamed to "tail" (as in tail call) and may freely clobber a t-register, as before. A new "jump" was added that requires a second argument, which is the scratch register it may clobber. "tail" should be used for tail calls; "jump" should be used for intraprocedural jumps more than 1 MiB away.
Diffstat (limited to 'glibc')
-rw-r--r--glibc/sysdeps/riscv/start.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/glibc/sysdeps/riscv/start.S b/glibc/sysdeps/riscv/start.S
index f0d4309..8195002 100644
--- a/glibc/sysdeps/riscv/start.S
+++ b/glibc/sysdeps/riscv/start.S
@@ -55,7 +55,7 @@ ENTRY(ENTRY_POINT)
lla a4, __libc_csu_fini
move a6, sp /* stack_end */
- jump __libc_start_main@
+ tail __libc_start_main@
END(ENTRY_POINT)
/* Define a symbol for the first piece of initialized data. */