[all-commits] [llvm/llvm-project] 4d0226: [yaml2obj][COFF] Add support for extended relocati...

Sergey Dmitriev via All-commits all-commits at lists.llvm.org
Thu Nov 14 12:47:06 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d02263af0d504593e6312b44dfa7749181a21e4
      https://github.com/llvm/llvm-project/commit/4d02263af0d504593e6312b44dfa7749181a21e4
  Author: Sergey Dmitriev <serguei.n.dmitriev at intel.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M llvm/lib/ObjectYAML/COFFEmitter.cpp
    A llvm/test/tools/yaml2obj/coff-xrelocs.yaml

  Log Message:
  -----------
  [yaml2obj][COFF] Add support for extended relocation tables

Summary:
The tool does not correctly handle COFF sections with extended relocation tables (with IMAGE_SCN_LNK_NRELOC_OVFL bit set), this patch fixes this problem.

But I have cheated a bit in the test (to make it smaller) because extended relocation table is supposed to be used when the number of relocations exceeds 65534. Otherwise the test size would be pretty big.

Reviewers: jhenderson, MaskRay, mstorsjo

Reviewed By: mstorsjo

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70251




More information about the All-commits mailing list