[all-commits] [llvm/llvm-project] c9cbd4: [lld] Fix -ObjC load behavior with LTO for section...

Aleksandr Urakov via All-commits all-commits at lists.llvm.org
Sun Jul 20 23:08:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9cbd4e9d4025b3b5c9593f3c187e0d5e3471a89
      https://github.com/llvm/llvm-project/commit/c9cbd4e9d4025b3b5c9593f3c187e0d5e3471a89
  Author: Aleksandr Urakov <xande8088 at yandex.ru>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M lld/test/MachO/objc.s
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  [lld] Fix -ObjC load behavior with LTO for section names with whitespace (#146654)

This is a fix additional to #92162

In some cases, section names contain a whitespace between the segment
name and the actual section name (e.g. `__TEXT, __swift5_proto`). It is
confirmed by source code of the Swift compiler

This fix allows LTO to work correctly with the `-ObjC` flag in that rare
case when only a section with a whitespace in the name is present in the
linked bitcode module, but there are no sections containing
`__TEXT,__swift`

---------

Co-authored-by: Ураков Александр Сергеевич <a.urakov at tbank.ru>
Co-authored-by: Ellis Hoag <ellis.sparky.hoag at gmail.com>



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