summaryrefslogtreecommitdiff
path: root/core/init.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-13 22:46:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-13 22:46:25 -0700
commit4cc0c3ab6541753b89cba58c345c0cae8c7d151d (patch)
treefb8904a1e48da982a6fe3eb105a5c8be20c5a342 /core/init.inc
parent95a461a83adf65aa5689b65f85330ce970121f56 (diff)
downloadsyslinux-4cc0c3ab6541753b89cba58c345c0cae8c7d151d.tar.gz
core: rename .text, .data and .bss to .text16, .data16, .bss16unify-pm
Rename the .text, .data and .bss sections to .text16, .data16 and .bss16, in anticipation of being linked with compiler-generated 32-bit code, which presumably would like to use the standard section names. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/init.inc')
-rw-r--r--core/init.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/init.inc b/core/init.inc
index 827a5097..201d1b46 100644
--- a/core/init.inc
+++ b/core/init.inc
@@ -18,13 +18,13 @@
; Common initialization code (inline)
;
- section .text
+ section .text16
common_init:
; Zero bss sections (but not .earlybss, since it may
; contain already-live data.)
xor eax,eax
- mov di,__bss_start
- mov cx,__bss_dwords
+ mov di,__bss16_start
+ mov cx,__bss16_dwords
rep stosd
mov di,__uibss_start
mov cx,__uibss_dwords
@@ -55,4 +55,4 @@ common_init:
add ax,PKTBUF_SIZE
loop .setbufptr
%endif
- section .text ; This is an inline file...
+ section .text16 ; This is an inline file...