[Nasm-bugs] [Bug 3392473] Arithmetic Exception in nasm 2.14rc0
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Mon Aug 20 23:35:15 PDT 2018
https://bugzilla.nasm.us/show_bug.cgi?id=3392473
Hongxu Jia <hongxu.jia at windriver.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hongxu.jia at windriver.com
--- Comment #4 from Hongxu Jia <hongxu.jia at windriver.com> ---
I am afraid the fix of your
patch[https://bugzilla.nasm.us/attachment.cgi?id=411647&action=diff] caused
build ovmf failed.
In ovmf
vim UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
[snip]
38 AsmIdtVectorBegin:
39 %rep 32
40 db 0x6a ; push #VectorNum
41 db ($ - AsmIdtVectorBegin) / ((AsmIdtVectorEnd -
AsmIdtVectorBegin) / 32) ; VectorNum
42 push rax
43 mov rax, ASM_PFX(CommonInterruptEntry)
44 jmp rax
45 %endrep
46 AsmIdtVectorEnd:
[snip]
While applying your patch and compile ovmf:
455 "x86_64-oe-linux-gcc" -E -x assembler-with-cpp -include
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/Ovmf
UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/DEBUG/AutoGen.h
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-li
efiCpuPkg/Library/CpuExceptionHandlerLib/X64
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/UefiCpuPkg/Library/
b
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuException
ptionHandlerLib/DEBUG
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/MdePkg
-I/buildarea1/hjia/community/build_
build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/MdePkg/Include
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/g
ude/X64
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/MdeModulePkg
-I/buildarea1/hjia/community/build_installe
e/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/MdeModulePkg/Include
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/UefiCpuPkg/Include
/buildarea1/hjia/community/build_installer_2018
glibc/work/core2-64-oe-linux/ovmf/git-r0/git/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
> /buildarea1/hjia/community/build_installer_2018081323/build_c
e2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.i
456 Trim --trim-long --source-code -o
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/U
ExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/o
OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.i
457 "nasm"
-I/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/
-f elf64 -
mmunity/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExcept
X64/ExceptionHandlerAsm.obj
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpu
ionHandlerLib/PeiCpuExceptionHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii
458
/buildarea1/hjia/community/build_installer_2018081323/build_cve/tmp-glibc/work/core2-64-oe-linux/ovmf/git-r0/git/Build/OvmfX64/RELEASE_GCC5/X64/UefiCpuPkg/Library/CpuExceptionHand
nHandlerLib/OUTPUT/X64/ExceptionHandlerAsm.iii:45: error: division by zero
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list