More: prefer movzbl over movb fetch to register

Avoids hardware failure of writing 0x00 instead of the fetched byte.
1 cycle faster, 1 byte larger (but often recouped later when OR of 32-bits).
Avoid changing win*pe.S for now.

	modified:   ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
	modified:   stub/src/amd64-darwin.dylib-entry.S
	modified:   stub/src/amd64-darwin.macho-entry.S
	modified:   stub/src/amd64-expand.S
	modified:   stub/src/amd64-linux.shlib-init.S
	modified:   stub/src/arch/amd64/nrv2b_d.S
	modified:   stub/src/arch/amd64/nrv2d_d.S
	modified:   stub/src/arch/amd64/nrv2e_d.S
	modified:   stub/src/arch/i386/nrv2b_d32-easy.S
	modified:   stub/src/i386-darwin.macho-entry.S
           plus generated *.h *.map *.dump
This commit is contained in:
John Reiser
2024-08-02 13:02:19 -07:00
parent 3869a67180
commit ed0665407a
31 changed files with 7753 additions and 7748 deletions
+26 -26
View File
@@ -8,32 +8,13 @@ Linker script and memory map
0x000000000010004c . = ((0x100000 + SIZEOF_HEADERS) + 0xc)
.text 0x0000000000000000 0x8f7
.text 0x0000000000000000 0x160 tmp/amd64-linux.elf-fold.o
0x0000000000000158 get_page_mask
.text 0x0000000000000160 0x0 tmp/amd64-expand.o
.text 0x0000000000000160 0x797 tmp/amd64-linux.elf-main2.o
0x00000000000002b5 underlay
0x00000000000007c2 upx_main
EXP_HEAD 0x0000000000000000 0xe1
EXP_HEAD 0x0000000000000000 0xe1 tmp/amd64-expand.o
0x0000000000000000 f_expand
NRV2E 0x0000000000000000 0xe4
NRV2E 0x0000000000000000 0xe4 tmp/amd64-expand.o
NRV2D 0x0000000000000000 0xd6
NRV2D 0x0000000000000000 0xd6 tmp/amd64-expand.o
NRV2B 0x0000000000000000 0xc0
NRV2B 0x0000000000000000 0xc0 tmp/amd64-expand.o
LZMA_DAISY 0x0000000000000000 0xa
LZMA_DAISY 0x0000000000000000 0xa tmp/amd64-expand.o
LZMA_ELF00 0x0000000000000000 0x65
LZMA_ELF00 0x0000000000000000 0x65 tmp/amd64-expand.o
.text 0x0000000000000000 0x91b
.text 0x0000000000000000 0x164 tmp/amd64-linux.elf-fold.o
0x000000000000015c get_page_mask
.text 0x0000000000000164 0x0 tmp/amd64-expand.o
.text 0x0000000000000164 0x7b7 tmp/amd64-linux.elf-main2.o
0x00000000000002b9 underlay
0x00000000000007e6 upx_main
.data 0x0000000000000000 0x0
.data 0x0000000000000000 0x0 tmp/amd64-linux.elf-fold.o
@@ -68,6 +49,25 @@ SYSCALLS 0x0000000000000000 0xc0
0x00000000000000b4 mprotect
0x00000000000000a8 close
EXP_HEAD 0x0000000000000000 0xe9
EXP_HEAD 0x0000000000000000 0xe9 tmp/amd64-expand.o
0x0000000000000000 f_expand
NRV2E 0x0000000000000000 0xe8
NRV2E 0x0000000000000000 0xe8 tmp/amd64-expand.o
NRV2D 0x0000000000000000 0xdb
NRV2D 0x0000000000000000 0xdb tmp/amd64-expand.o
NRV2B 0x0000000000000000 0xc4
NRV2B 0x0000000000000000 0xc4 tmp/amd64-expand.o
LZMA_DAISY 0x0000000000000000 0xa
LZMA_DAISY 0x0000000000000000 0xa tmp/amd64-expand.o
LZMA_ELF00 0x0000000000000000 0x65
LZMA_ELF00 0x0000000000000000 0x65 tmp/amd64-expand.o
LZMA_DEC10 0x0000000000000000 0x9f7
LZMA_DEC10 0x0000000000000000 0x9f7 tmp/amd64-expand.o