2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

Move .zinfo to libprefix.S; it doesn't belong with the decompression code.

This commit is contained in:
Michael Brown 2007-07-17 12:52:54 +01:00
parent cb237819ca
commit c94cdf2b7d
3 changed files with 29 additions and 39 deletions

View File

@ -87,7 +87,7 @@ install_block:
#if COMPRESS
call decompress16
#else
call nodecompress16
rep addr32 movsb
#endif
/* Zero remaining space */
@ -438,3 +438,31 @@ prot_call_vector:
.word 0
.size prot_call_vector, . - prot_call_vector
#endif
/* File split information for the compressor */
#if COMPRESS
.section ".zinfo", "a"
.ascii "COPY"
.long _prefix_load_offset
.long _prefix_progbits_size
.long _max_align
.ascii "PACK"
.long _text16_load_offset
.long _text16_progbits_size
.long _max_align
.ascii "PACK"
.long _data16_load_offset
.long _data16_progbits_size
.long _max_align
.ascii "PACK"
.long _textdata_load_offset
.long _textdata_progbits_size
.long _max_align
#else /* COMPRESS */
.section ".zinfo", "a"
.ascii "COPY"
.long _prefix_load_offset
.long _load_size
.long _max_align
#endif /* COMPRESS */

View File

@ -1,18 +0,0 @@
/* Placeholder for decompress16 in non-compressed images */
.text
.arch i386
.section ".prefix.lib", "ax", @progbits
.code16
.globl nodecompress16
nodecompress16:
rep addr32 movsb
ret
/* File split information for the compressor */
.section ".zinfo", "a"
.ascii "COPY"
.long _prefix_load_offset
.long _load_size
.long _max_align

View File

@ -180,23 +180,3 @@ decompr_end_n2b:
popl %ebx
pop %xAX
ret
/* File split information for the compressor */
.section ".zinfo", "a"
.ascii "COPY"
.long _prefix_load_offset
.long _prefix_progbits_size
.long _max_align
.ascii "PACK"
.long _text16_load_offset
.long _text16_progbits_size
.long _max_align
.ascii "PACK"
.long _data16_load_offset
.long _data16_progbits_size
.long _max_align
.ascii "PACK"
.long _textdata_load_offset
.long _textdata_progbits_size
.long _max_align