aboutsummaryrefslogtreecommitdiffstats
path: root/bcopy32.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-17 05:37:52 +0000
committerhpa <hpa>2004-12-17 05:37:52 +0000
commit7da4d04f57c549c1e6cf850d75400ded5ac82cb8 (patch)
tree7398045e8180d1a693e31d8d07a094e9871535dc /bcopy32.inc
parent303c60d5b20217ff70fbb115bc8818f0ae1b4bfd (diff)
downloadsyslinux.git-7da4d04f57c549c1e6cf850d75400ded5ac82cb8.tar.gz
syslinux.git-7da4d04f57c549c1e6cf850d75400ded5ac82cb8.tar.xz
syslinux.git-7da4d04f57c549c1e6cf850d75400ded5ac82cb8.zip
Move the .bss to a separate section so we can at least begin to move
bss variables near the code where they're defined
Diffstat (limited to 'bcopy32.inc')
-rw-r--r--bcopy32.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcopy32.inc b/bcopy32.inc
index f4486909..f72cb555 100644
--- a/bcopy32.inc
+++ b/bcopy32.inc
@@ -389,7 +389,7 @@ try_wbinvd:
; ESI, EDI, ECX - same as bcopy
; On stack - initial state (fd, ad, ds, es, fs, gs)
;
-%define ADJUST (__bcopy_start - trackbuf)
+%define ADJUST (__bcopy_start - $$) - BSS_START
align 2
adjlist dw bcopy_gdt.adj1 - ADJUST
@@ -410,7 +410,7 @@ bcopy_over_self:
mov ds,bx
mov si,__bcopy_start
- mov di,trackbuf
+ mov di,trackbuf ; == BSS_START
mov cx,(__bcopy_end - __bcopy_start + 3) >> 2
rep movsd