]> git.proxmox.com Git - grub2.git/commit
asm-tests/i386-pc: Check that movl is 5 bytes.
authorAndrei Borzenkov <arvidjaar@gmail.com>
Wed, 28 Sep 2016 17:31:04 +0000 (20:31 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Wed, 28 Sep 2016 17:31:04 +0000 (20:31 +0300)
commita0bf403f66dbaca4edd8e667bfc397dd91c8d71c
tree77bb54a04f8c6b1f3db996b1a3f8fee65406a108
parent4e0f8f66e321cf1051c0e01f6fbcc6fc35a807b6
asm-tests/i386-pc: Check that movl is 5 bytes.

LLVM 3.9 now emits short form of jump instructions, but it is still using
32 bit addresses for some movl instructions. Fortunately it was caught early:

clang ... boot/i386/pc/boot.S
clang -cc1as: fatal error: error in backend: invalid .org offset '440' (at offset '441')

Add additional check to catch it during configure run and force -no-integrated-as.

Closes: 49200
More details in
  https://lists.gnu.org/archive/html/grub-devel/2015-02/msg00099.html
  https://llvm.org/bugs/show_bug.cgi?id=22662
asm-tests/i386-pc.S