Skip to content
Snippets Groups Projects
Commit cbf2323b authored by Shinya Kuribayashi's avatar Shinya Kuribayashi Committed by Shinya Kuribayashi
Browse files

[MIPS] u-boot.lds: Fix __got_start and __got_end


Ensure that __got_start points to top of the `.got', and __got_end points
to bottom as well, so that we never fail to count num_got_entries.

Signed-off-by: default avatarShinya Kuribayashi <shinya.kuribayashi@necel.com>
parent e5f325fe
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -45,9 +45,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -45,9 +45,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -45,9 +45,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -55,9 +55,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -45,9 +45,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
......@@ -41,9 +41,11 @@ SECTIONS
_gp = ALIGN(16);
__got_start = .;
.got : { *(.got) }
__got_end = .;
.got : {
__got_start = .;
*(.got)
__got_end = .;
}
.sdata : { *(.sdata) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment