summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b1c734)
raw | patch | inline | side by side (parent: 8b1c734)
author | Gabor Juhos <juhosg@openwrt.org> | |
Tue, 12 Feb 2013 21:22:12 +0000 (22:22 +0100) | ||
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | |
Tue, 12 Feb 2013 21:22:12 +0000 (22:22 +0100) |
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>
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>
arch/mips/cpu/u-boot.lds | patch | blob | history |
index 37c9d2364aab9a21fd7d8f8f673814ca5576021b..58a49b2137bf4a1bc912b41340ca388017d38d14 100644 (file)
--- a/arch/mips/cpu/u-boot.lds
+++ b/arch/mips/cpu/u-boot.lds
_gp = ALIGN(16) + 0x7ff0;
.got : {
- __got_start = .;
*(.got)
- __got_end = .;
}
+ num_got_entries = SIZEOF(.got) >> PTR_COUNT_SHIFT;
+
. = ALIGN(4);
.sdata : {
*(.sdata*)
uboot_end_data = .;
- num_got_entries = (__got_end - __got_start) >> PTR_COUNT_SHIFT;
-
. = ALIGN(4);
.sbss : {
*(.sbss*)