aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-06-08 15:52:26 +0800
committerFeng Tang <feng.tang@intel.com>2010-07-20 11:10:03 +0800
commite43783bd06d915b2157e63b9b1853e7600ef2b87 (patch)
tree275b9c1d9d7d79ea4c40fdfa2d2baa8e3f7ff1bc
parent9aebffe8214587cf425650834e71329f12f13ba7 (diff)
downloadsyslinux-e43783bd06d915b2157e63b9b1853e7600ef2b87.tar.gz
syslinux-e43783bd06d915b2157e63b9b1853e7600ef2b87.tar.xz
syslinux-e43783bd06d915b2157e63b9b1853e7600ef2b87.zip
modify core/syslinux.ld to make compile pass
-rw-r--r--core/syslinux.ld45
1 files changed, 45 insertions, 0 deletions
diff --git a/core/syslinux.ld b/core/syslinux.ld
index ea102114..466b450e 100644
--- a/core/syslinux.ld
+++ b/core/syslinux.ld
@@ -298,6 +298,39 @@ SECTIONS
. = ALIGN(4);
+ __dynsym_vma = .;
+ __dynsym_lma = __dynsym_vma + __text_lma - __text_vma;
+ .dynsym : AT(__dynsym_lma) {
+ __dynsym_start = .;
+ *(.dynsym)
+ __dynsym_end = .;
+ }
+ __dynsym_len = __dynsym_end - __dynsym_start;
+
+ . = ALIGN(4);
+
+ __dynstr_vma = .;
+ __dynstr_lma = __dynstr_vma + __text_lma - __text_vma;
+ .dynstr : AT(__dynstr_lma) {
+ __dynstr_start = .;
+ *(.dynstr)
+ __dynstr_end = .;
+ }
+ __dynstr_len = __dynstr_end - __dynstr_start;
+
+ . = ALIGN(4);
+
+ __gnu_hash_vma = .;
+ __gnu_hash_lma = __gnu_hash_vma + __text_lma - __text_vma;
+ .gnu.hash : AT(__gnu_hash_lma) {
+ __gnu_hash_start = .;
+ *(.gnu.hash)
+ __gnu_hash_end = .;
+ }
+
+
+ . = ALIGN(4);
+
__dynlink_vma = .;
__dynlink_lma = __dynlink_vma + __text_lma - __text_vma;
.dynlink : AT(__dynlink_lma) {
@@ -317,6 +350,18 @@ SECTIONS
__got_end = .;
}
+ . = ALIGN(4);
+
+ __dynamic_vma = .;
+ __dynamic_lma = __dynamic_vma + __text_lma - __text_vma;
+ .dynamic : AT(__dynamic_lma) {
+ __dynamic_start = .;
+ *(.dynamic)
+ __dynamic_end = .;
+ }
+
+ . = ALIGN(16);
+
__data_vma = .;
__data_lma = __data_vma + __text_lma - __text_vma;
.data : AT(__data_lma) {