[all-commits] [llvm/llvm-project] 3c8b18: [lld-macho] Use larger ordinal encoding if import ...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Wed Jul 10 09:40:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c8b18bc512ad87b379b4b7c06d52ca2d13860b2
      https://github.com/llvm/llvm-project/commit/3c8b18bc512ad87b379b4b7c06d52ca2d13860b2
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2024-07-10 (Wed, 10 Jul 2024)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp

  Log Message:
  -----------
  [lld-macho] Use larger ordinal encoding if import count requires it (#98305)

The default `dyld_chained_import` entry format only allocates 8 bits to
the library ordinal, of which values 0xF1 - 0xFF are reserved for
special ordinals (`BIND_SPECIAL_DYLIB_*` values). If there are more than
240 imported dylibs (as in the case of component builds of Chromium), we
need to switch to `dyld_chained_import_addend64`, which stores 16-bit
ordinals.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list