[all-commits] [llvm/llvm-project] a43bf8: [JITLink][ELF] Add error checks to the ELFLinkGrap...

lhames via All-commits all-commits at lists.llvm.org
Tue Aug 29 13:55:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a43bf8a8898cac8cc9648327f27f948e59a94c13
      https://github.com/llvm/llvm-project/commit/a43bf8a8898cac8cc9648327f27f948e59a94c13
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h

  Log Message:
  -----------
  [JITLink][ELF] Add error checks to the ELFLinkGraphBuilder.

We now check for:
1. Duplicate definitions of the same section name with different permissions.
2. Symbols whose size extends past the end of the containing block.

It's not clear to me whether either of these is strictly prohibited by the ELF
spec, but they seem pathalogical and JITLink doesn't currently handle them. For
now we'll make them recoverable errors so that if we do encounter these in the
wild we can report the issue(s).




More information about the All-commits mailing list