From 323ef2bdc358b90f0894223a6424df036c6dfe02 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 11 Nov 2015 18:58:57 +0100 Subject: [PATCH] asm-tests/i386-pc: Check that near jumps are 2 bytes. We already check that jump over 300 bytes gap is 3 bytes in code16-mode. Some clang versions generate 3-byte opcode for short jumps which makes boot.img blow over 512-byte limit. Enforce -no-integrated-as in such cases --- asm-tests/i386-pc.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/asm-tests/i386-pc.S b/asm-tests/i386-pc.S index 97cd32ae8..f6f9a88be 100644 --- a/asm-tests/i386-pc.S +++ b/asm-tests/i386-pc.S @@ -5,6 +5,10 @@ .code16 jmp far .org 4 - .space 300 + jmp nearer + .org 6 + .space 100 +nearer: + .space 200 far: .byte 0