File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1705,17 +1705,18 @@ let assemble_line b loc ins =
1705
1705
match eval_const b (Buffer. length b.buf) cst with
1706
1706
| Rint n -> (get_symbol b lbl).sy_size < - Some (Int64. to_int n)
1707
1707
| _ -> assert false )
1708
- | Directive (D. Align { data_section =data ; bytes = n } ) -> (
1708
+ | Directive (D. Align { fill_x86_bin_emitter =data ; bytes = n } ) -> (
1709
1709
(* TODO: Buffer.length = 0 => set section align *)
1710
1710
let pos = Buffer. length b.buf in
1711
1711
let current = pos mod n in
1712
1712
if current > 0 then
1713
1713
let n = n - current in
1714
- if data then
1714
+ match data with
1715
+ | Asm_targets.Asm_directives_new. Zero ->
1715
1716
for _ = 1 to n do
1716
1717
buf_int8 b 0x00
1717
1718
done
1718
- else
1719
+ | Asm_targets.Asm_directives_new. Nop ->
1719
1720
match n with
1720
1721
| 0 -> ()
1721
1722
| 1 -> buf_int8 b 0x90
You can’t perform that action at this time.
0 commit comments