(Redoing check-in lost by SourceForge's failure.)

Use .text16.data section with "aw" attributes, to avoid section type
conflicts when placing both code and data into .text16.

Add __from_{text16,data16}.
This commit is contained in:
Michael Brown
2006-05-13 11:11:55 +00:00
parent 97d265f8dc
commit f7b963da51
4 changed files with 34 additions and 13 deletions

View File

@@ -19,7 +19,9 @@
#define SIZEOF_I386_ALL_REGS ( SIZEOF_REAL_MODE_REGS + SIZEOF_I386_FLAGS )
.arch i386
.section ".text16", "awx", @progbits
.section ".text16", "ax", @progbits
.section ".text16.data", "aw", @progbits
.section ".data16", "aw", @progbits
/****************************************************************************
* Global descriptor table
@@ -45,7 +47,7 @@
#else
#define RM_LIMIT_16_19__AVL__SIZE__GRANULARITY 0x00
#endif
.section ".data16", "aw", @progbits
.section ".data16"
.align 16
gdt:
gdt_limit: .word gdt_length - 1
@@ -308,7 +310,7 @@ p2r_jump_target:
p2r_jump_vector:
.word p2r_jump_target
rm_cs: .word 0
.section ".text16"
.section ".text16.data"
rm_ds: .word 0
/****************************************************************************