[all-commits] [llvm/llvm-project] 5e643c: [ELF] --gdb-index: error if constant pool size exc...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Aug 31 21:10:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e643cd7b79278073177d237ebadb34f1219965d
      https://github.com/llvm/llvm-project/commit/5e643cd7b79278073177d237ebadb34f1219965d
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M lld/ELF/SyntheticSections.cpp

  Log Message:
  -----------
  [ELF] --gdb-index: error if constant pool size exceeds UINT32_MAX

If so, the last symbol's name_offset likely exceeds 0xffffffff and is not
supported by the format
(https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html#Index-Section-Format).
I have seen an internal oversized executable with such a corrupted .gdb_index




More information about the All-commits mailing list