323ef2bdc3
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
14 lines
260 B
ArmAsm
14 lines
260 B
ArmAsm
/* on x86 old clang doesn't support .code16
|
|
newer clang supports it but creates 6-byte jumps instead of 3-byte ones
|
|
which makes us go over boot sector size. */
|
|
|
|
.code16
|
|
jmp far
|
|
.org 4
|
|
jmp nearer
|
|
.org 6
|
|
.space 100
|
|
nearer:
|
|
.space 200
|
|
far:
|
|
.byte 0
|