wok diff linld/stuff/src/pipehole.awk @ rev 23988

syslinux: iso2exe/init scan all partitions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 03 09:39:27 2020 +0000 (2020-12-03)
parents 431c14b76522
children afa00d471293
line diff
     1.1 --- a/linld/stuff/src/pipehole.awk	Wed Nov 25 20:41:41 2020 +0000
     1.2 +++ b/linld/stuff/src/pipehole.awk	Thu Dec 03 09:39:27 2020 +0000
     1.3 @@ -203,6 +203,15 @@
     1.4  	}
     1.5  	 } # file == "load.cpp"
     1.6  	 if (file == "iso9660.cpp") {
     1.7 +	if (/p = x->buffer \+ 34/) isiso=13
     1.8 +	if (isiso == 13) { # ISO9660.LST
     1.9 +		if (/di,si/) $0="	xchg	ax,bx"
    1.10 +		if (/di,ax/) $0="	lea	di,[si+bx+70]"
    1.11 +		if (/di,70/) {
    1.12 +			isiso=0
    1.13 +			next
    1.14 +		}
    1.15 +	}
    1.16  	if (/register len/) isiso=12
    1.17  	if (isiso == 12) { # ISO9660.LST
    1.18  		sub(/mov	dx,ax/,"xchg	ax,bx")