[all-commits] [llvm/llvm-project] a795bd: [llvm-objcopy] - Do not crash on object that has r...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Oct 30 03:22:50 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a795bd96454402bbb4f5fcd186d4b112c8010000
      https://github.com/llvm/llvm-project/commit/a795bd96454402bbb4f5fcd186d4b112c8010000
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-10-30 (Wed, 30 Oct 2019)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
    A llvm/test/tools/llvm-objcopy/ELF/relocations-no-symtab.test
    M llvm/tools/llvm-objcopy/ELF/Object.cpp

  Log Message:
  -----------
  [llvm-objcopy] - Do not crash on object that has relocations but no symbol table.

It was revealed by D69260.

Tool crashed when scanned relocations in a object without a symbol table.
This patch teaches it either to handle such objects (when relocations
does not use symbols we do not need a symbol table to proceed)
or to show an appropriate error otherwise.

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




More information about the All-commits mailing list