diff options
Diffstat (limited to 'html/subx/053new_segment.subx.html')
-rw-r--r-- | html/subx/053new_segment.subx.html | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/html/subx/053new_segment.subx.html b/html/subx/053new_segment.subx.html index 92a3f0e5..791c20a9 100644 --- a/html/subx/053new_segment.subx.html +++ b/html/subx/053new_segment.subx.html @@ -25,6 +25,7 @@ body { font-size:12pt; font-family: monospace; color: #aaaaaa; background-color: .CommentedCode { color: #6c6c6c; } .subxFunction { color: #ff8700; } .subxMinorFunction { color: #875f5f; } +.Constant { color:#00a0a0; } .subxH1Comment { color:#00ffff; } --> </style> @@ -99,30 +100,31 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr">36 </span> bb/copy-to-EBX _mmap-new-segment/imm32 <span id="L37" class="LineNr">37 </span> b8/copy-to-EAX 0x5a/imm32/mmap <span id="L38" class="LineNr">38 </span> cd/syscall 0x80/imm8 -<span id="L39" class="LineNr">39 </span> <span class="subxS1Comment"># . epilog</span> -<span id="L40" class="LineNr">40 </span> 5b/pop-to-EBX -<span id="L41" class="LineNr">41 </span> 89/copy 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 5/r32/EBP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy EBP to ESP</span> -<span id="L42" class="LineNr">42 </span> 5d/pop-to-EBP -<span id="L43" class="LineNr">43 </span> c3/return -<span id="L44" class="LineNr">44 </span> -<span id="L45" class="LineNr">45 </span>== data -<span id="L46" class="LineNr">46 </span> -<span id="L47" class="LineNr">47 </span><span class="subxComment"># various constants used here were found in the Linux sources (search for file mman-common.h)</span> -<span id="L48" class="LineNr">48 </span><span class="subxMinorFunction">_mmap-new-segment</span>: <span class="subxComment"># type mmap_arg_struct</span> -<span id="L49" class="LineNr">49 </span> <span class="subxComment"># addr</span> -<span id="L50" class="LineNr">50 </span> 00 00 00 00 <span class="subxComment"># null</span> -<span id="L51" class="LineNr">51 </span> <span class="subxComment"># len</span> -<span id="L52" class="LineNr">52 </span> 00 00 00 00 <span class="subxComment"># 0x1000</span> -<span id="L53" class="LineNr">53 </span> <span class="subxComment"># protection flags</span> -<span id="L54" class="LineNr">54 </span> 03 00 00 00 <span class="subxComment"># PROT_READ | PROT_WRITE</span> -<span id="L55" class="LineNr">55 </span> <span class="subxComment"># sharing flags</span> -<span id="L56" class="LineNr">56 </span> 22 00 00 00 <span class="subxComment"># MAP_PRIVATE | MAP_ANONYMOUS</span> -<span id="L57" class="LineNr">57 </span> <span class="subxComment"># fd</span> -<span id="L58" class="LineNr">58 </span> ff ff ff ff <span class="subxH1Comment"># -1 since MAP_ANONYMOUS is specified</span> -<span id="L59" class="LineNr">59 </span> <span class="subxComment"># offset</span> -<span id="L60" class="LineNr">60 </span> 00 00 00 00 <span class="subxComment"># 0 since MAP_ANONYMOUS is specified</span> -<span id="L61" class="LineNr">61 </span> -<span id="L62" class="LineNr">62 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> +<span id="L39" class="LineNr">39 </span><span class="Constant">$new-segment:end</span>: +<span id="L40" class="LineNr">40 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L41" class="LineNr">41 </span> 5b/pop-to-EBX +<span id="L42" class="LineNr">42 </span> 89/copy 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 5/r32/EBP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy EBP to ESP</span> +<span id="L43" class="LineNr">43 </span> 5d/pop-to-EBP +<span id="L44" class="LineNr">44 </span> c3/return +<span id="L45" class="LineNr">45 </span> +<span id="L46" class="LineNr">46 </span>== data +<span id="L47" class="LineNr">47 </span> +<span id="L48" class="LineNr">48 </span><span class="subxComment"># various constants used here were found in the Linux sources (search for file mman-common.h)</span> +<span id="L49" class="LineNr">49 </span><span class="subxMinorFunction">_mmap-new-segment</span>: <span class="subxComment"># type mmap_arg_struct</span> +<span id="L50" class="LineNr">50 </span> <span class="subxComment"># addr</span> +<span id="L51" class="LineNr">51 </span> 00 00 00 00 <span class="subxComment"># null</span> +<span id="L52" class="LineNr">52 </span> <span class="subxComment"># len</span> +<span id="L53" class="LineNr">53 </span> 00 00 00 00 <span class="subxComment"># 0x1000</span> +<span id="L54" class="LineNr">54 </span> <span class="subxComment"># protection flags</span> +<span id="L55" class="LineNr">55 </span> 03 00 00 00 <span class="subxComment"># PROT_READ | PROT_WRITE</span> +<span id="L56" class="LineNr">56 </span> <span class="subxComment"># sharing flags</span> +<span id="L57" class="LineNr">57 </span> 22 00 00 00 <span class="subxComment"># MAP_PRIVATE | MAP_ANONYMOUS</span> +<span id="L58" class="LineNr">58 </span> <span class="subxComment"># fd</span> +<span id="L59" class="LineNr">59 </span> ff ff ff ff <span class="subxH1Comment"># -1 since MAP_ANONYMOUS is specified</span> +<span id="L60" class="LineNr">60 </span> <span class="subxComment"># offset</span> +<span id="L61" class="LineNr">61 </span> 00 00 00 00 <span class="subxComment"># 0 since MAP_ANONYMOUS is specified</span> +<span id="L62" class="LineNr">62 </span> +<span id="L63" class="LineNr">63 </span><span class="subxS2Comment"># . . vim:nowrap:textwidth=0</span> </pre> </body> </html> |