wok diff linld/stuff/src/pipehole.awk @ rev 21752
tazboot: shrink (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 15 22:12:18 2019 +0200 (2019-06-15) |
parents | 74a62a08433a |
children | 8b9f768b711e |
line diff
1.1 --- a/linld/stuff/src/pipehole.awk Sat Jun 15 18:53:05 2019 +0200 1.2 +++ b/linld/stuff/src/pipehole.awk Sat Jun 15 22:12:18 2019 +0200 1.3 @@ -110,8 +110,14 @@ 1.4 sub(/DGROUP:_base_himem,/,"[bx],") 1.5 sub(/DGROUP:_base_himem\+2,/,"[bx+2],") 1.6 sub(/DGROUP:_base_himem\+3,/,"[bx+3],") 1.7 - if (/ax,word ptr \[bx\+2\]/ || /\[bp-4\],ax/) sub(/ax/,"bx") 1.8 - if (/bx,ax/) next 1.9 + if (/word ptr \[bx\+2\],0/) { 1.10 + print s 1.11 + hold=0 1.12 + print " mov bx,word ptr [bx+2]" 1.13 + $0=" or bx,bx" 1.14 + } 1.15 + if (/\[bp-4\],ax/) sub(/ax/,"bx") 1.16 + if (/ax,word ptr \[bx\+2\]/ || /bx,ax/) next 1.17 if (/@strcmp\$qpxzct1/) isotazboot=0 1.18 } 1.19 if (/static void addinitrd/) isotazboot=100