aboutsummaryrefslogtreecommitdiff
path: root/glibc
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-10-20 15:36:21 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-10-20 15:36:21 -0700
commita5b9f44390259333ab47d6dfaafbf2fa50b4a8e0 (patch)
treef434739678c53aa54c0645f2c0e6b64a9bf09094 /glibc
parent0814689ac1af6f4be47779be470cbd2ed478cc7b (diff)
downloadriscv-gnu-toolchain-a5b9f44390259333ab47d6dfaafbf2fa50b4a8e0.zip
riscv-gnu-toolchain-a5b9f44390259333ab47d6dfaafbf2fa50b4a8e0.tar.gz
riscv-gnu-toolchain-a5b9f44390259333ab47d6dfaafbf2fa50b4a8e0.tar.bz2
Revert "binutils: relax LA macro to C.LUI when appropriate"
This reverts commit e05cc858aa5a6ed1ae0fec885a83090f81f355fe. Too much code assumes LA maps to AUIPC. Perhaps that is unreasonable, but the improvement of this patch is so minor that it seems hard to justify going back and fixing the code.
Diffstat (limited to 'glibc')
-rw-r--r--glibc/sysdeps/riscv/start.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/glibc/sysdeps/riscv/start.S b/glibc/sysdeps/riscv/start.S
index 1f64d80..8195002 100644
--- a/glibc/sysdeps/riscv/start.S
+++ b/glibc/sysdeps/riscv/start.S
@@ -45,8 +45,7 @@
__libc_start_main wants this in a5. */
ENTRY(ENTRY_POINT)
-1: auipc gp, %pcrel_hi(_gp)
- addi gp, gp, %pcrel_lo(1b)
+ lla gp, _gp
move a5, a0 /* rtld_fini */
lla a0, main
REG_L a1, 0(sp) /* argc */