aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:07:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:07:04 -0700
commit3bead6fddbbb82d853fc6650839e27e8d56d8d5b (patch)
treee2c82ee885e0cd6757c3c6ee01957ee8bab75765 /dos
parentb4c7ad318371764675dbd598318f2945bec71132 (diff)
downloadsyslinux-devel-3bead6fddbbb82d853fc6650839e27e8d56d8d5b.tar.gz
syslinux-devel-3bead6fddbbb82d853fc6650839e27e8d56d8d5b.tar.xz
syslinux-devel-3bead6fddbbb82d853fc6650839e27e8d56d8d5b.zip
dos/dosexe.ld: Work around linker issue in binutils 2.21.51
binutils 2.21.51 seems to have problem subtracting two section-relative symbols, so make them global. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dos')
-rw-r--r--dos/dosexe.ld11
1 files changed, 6 insertions, 5 deletions
diff --git a/dos/dosexe.ld b/dos/dosexe.ld
index c67c5060..833368aa 100644
--- a/dos/dosexe.ld
+++ b/dos/dosexe.ld
@@ -27,11 +27,11 @@ SECTIONS
__payload_lma = .;
. = 0x100000000 - syslinux_ldlinux_size;
+ __payload_start = .;
.payload : AT (__payload_lma) {
- __payload_start = .;
*(.payload)
- __payload_end = .;
}
+ __payload_end = .;
__payload_len = __payload_end - __payload_start;
__payload_dwords = __payload_len >> 2;
@@ -39,9 +39,10 @@ SECTIONS
__payload_sseg = (__payload_lma - __text_lma) >> 4;
_exe_text_seg = (__text_lma - __header_size) >> 4;
- __assert1 = ASSERT((__payload_len == syslinux_ldlinux_size),
- "syslinux_ldlinux_size must equal the size of .payload");
-
+/*
+ * __assert1 = ASSERT((__payload_len == syslinux_ldlinux_size),
+ * "syslinux_ldlinux_size must equal the size of .payload");
+ */
. = 0;
.text : AT (__text_lma) {
*(.text .stub .text.* .gnu.linkonce.t.*)