summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-12 22:22:12 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-02-12 22:22:12 +0100
commit45397816b204da27efd7f23d7e017cf381c5c9cd (patch)
tree269af0c69709aacda54642c9aa88ac7c643adf9d /arch/mips
parent8b1c7345c6d5ed20b6b5ec8db17a3282e592184d (diff)
MIPS: compute num_got_entries from .got section's size
The '__got_start' and '__got_end' symbols are used only in the linker script to compute the value of the 'num_got_entries' symbol. Remove the symbols and use the SIZEOF(.got) command to get the size of the .got section. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/cpu/u-boot.lds6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/cpu/u-boot.lds b/arch/mips/cpu/u-boot.lds
index 37c9d2364a..58a49b2137 100644
--- a/arch/mips/cpu/u-boot.lds
+++ b/arch/mips/cpu/u-boot.lds
@@ -52,11 +52,11 @@ SECTIONS
_gp = ALIGN(16) + 0x7ff0;
.got : {
- __got_start = .;
*(.got)
- __got_end = .;
}
+ num_got_entries = SIZEOF(.got) >> PTR_COUNT_SHIFT;
+
. = ALIGN(4);
.sdata : {
*(.sdata*)
@@ -69,8 +69,6 @@ SECTIONS
uboot_end_data = .;
- num_got_entries = (__got_end - __got_start) >> PTR_COUNT_SHIFT;
-
. = ALIGN(4);
.sbss : {
*(.sbss*)