[webkit-changes] [WebKit/WebKit] 2586ce: [SPI Checking] Store soft-linking constant strings...

Elliott Williams noreply at github.com
Wed Feb 26 11:28:29 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2586ce8c593136130b1f80b81853c85bb98b8d8d
      https://github.com/WebKit/WebKit/commit/2586ce8c593136130b1f80b81853c85bb98b8d8d
  Author: Elliott Williams <emw at apple.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M Source/WTF/wtf/cocoa/SoftLinking.h

  Log Message:
  -----------
  [SPI Checking] Store soft-linking constant strings in a separate binary section
https://bugs.webkit.org/show_bug.cgi?id=288553
rdar://145617985

Reviewed by Alexey Proskuryakov.

As part of an ongoing project to analyze WebKit use of SPI at build
time, we need a way to detect use of soft-linked SPI. Since the vast
majority of soft-linking in WebKit is done via the <wtf/SoftLinking.h>
library, change its macros to emit dlsym and objc_getClass string
constants to their own respective sections of the __TEXT segment.
This enables auditing tools to analyze possible usage by dumping the
contents of the section.

* Source/WTF/wtf/cocoa/SoftLinking.h:

Canonical link: https://commits.webkit.org/291152@main



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


More information about the webkit-changes mailing list