Commit f235dfbc authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Grzegorz Daniluk

ldscript and crt0.S: remove useless _gp

The global pointer is used by some special assembly instructions
that we are not using (i.e., the compiler is not generating them
for us, because we don't use PIC or other "strange" stuff.

So, we'd better remove an assignement in the linker script that makes
little sense (it must be a typo of some kind, in the dark ages of this
code base).
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c0288cc0
......@@ -130,8 +130,6 @@ _crt0:
/* Setup stack and global pointer */
mvhi sp, hi(_fstack)
ori sp, sp, lo(_fstack)
mvhi gp, hi(_gp)
ori gp, gp, lo(_gp)
mvhi r1, hi(_fbss)
ori r1, r1, lo(_fbss)
......
......@@ -45,7 +45,6 @@ SECTIONS
.data : {
*(.data .data.*)
_gp = ALIGN(16) + 0x7ff0; /* FIXME: what is this? */
} > ram
.bss : {
......
......@@ -49,7 +49,6 @@ SECTIONS
.data : {
*(.data .data.*)
_gp = ALIGN(16) + 0x7ff0; /* FIXME: what is this? */
} > ram
.bss : {
......
......@@ -49,7 +49,6 @@ SECTIONS
.data : {
*(.data .data.*)
_gp = ALIGN(16) + 0x7ff0; /* FIXME: what is this? */
} > ram
.bss : {
......
......@@ -14,6 +14,4 @@ _reset_handler:
xor r0, r0, r0
mvhi sp, hi(_fstack)
ori sp, sp, lo(_fstack)
mvhi gp, hi(_gp)
ori gp, gp, lo(_gp)
calli main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment