[all-commits] [llvm/llvm-project] 66fb3c: [DebugInfo/DWARF] - Report .eh_frame sections of v...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jun 16 05:54:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 66fb3c39cbc61845ba8ccdd8cb854c49281ed94b
      https://github.com/llvm/llvm-project/commit/66fb3c39cbc61845ba8ccdd8cb854c49281ed94b
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    A llvm/test/DebugInfo/X86/eh-frame-invalid-version-zero.s
    A llvm/test/DebugInfo/X86/eh-frame-invalid-version.s

  Log Message:
  -----------
  [DebugInfo/DWARF] - Report .eh_frame sections of version != 1.

Specification (https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html#AEN1349)
says that the value of Version field for .eh_frame should be 1.

Though we accept other values and might perform an attempt to read
it as a .debug_frame because of that, what is wrong.

This patch adds a version check.

Differential revision: https://reviews.llvm.org/D81469




More information about the All-commits mailing list