[all-commits] [llvm/llvm-project] 1de9bc: [lld][MachO] Respect dylibs linked with `-allowabl...

Carlo Cabrera via All-commits all-commits at lists.llvm.org
Wed Nov 20 17:02:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1de9bc1a27137a7559a247b73c14cfab3be81b54
      https://github.com/llvm/llvm-project/commit/1de9bc1a27137a7559a247b73c14cfab3be81b54
  Author: Carlo Cabrera <github at carlo.cab>
  Date:   2024-11-20 (Wed, 20 Nov 2024)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/DriverUtils.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/Options.td
    A lld/test/MachO/Inputs/liballowable_client.dylib
    A lld/test/MachO/allowable-client.s

  Log Message:
  -----------
  [lld][MachO] Respect dylibs linked with `-allowable_client` (#114638)

ld64.lld would previously allow you to link against dylibs linked with
`-allowable_client`, even if the client's name does not match any
allowed client.

This change fixes that. See #114146 for related discussion. 

The test binary `liballowable_client.dylib` was created on macOS with:

echo | clang -xc - -dynamiclib -mmacosx-version-min=10.11 -arch x86_64
-Wl,-allowable_client,allowed -o lib/liballowable_client.dylib



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