[webkit-changes] [WebKit/WebKit] 8ef2f1: Move __objc_stubs symbols closer to symbols that j...

Alex Christensen noreply at github.com
Mon Jan 30 21:37:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8ef2f173d264f50c0360166948283f6d7449cf2a
      https://github.com/WebKit/WebKit/commit/8ef2f173d264f50c0360166948283f6d7449cf2a
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M Source/WebCore/Configurations/WebCore.xcconfig

  Log Message:
  -----------
  Move __objc_stubs symbols closer to symbols that jump to them when linking WebCore
https://bugs.webkit.org/show_bug.cgi?id=251391
rdar://104834995

Reviewed by Elliott Williams.

Without this change and with some other unrelated changes from PR 9342 that slightly
increase WebCore's binary size, I get some linker errors like this:

ld: b(l) ARM64 branch out of range (134310948 max is +/-128MB)

That is because we are linking jumps to symbols in the __objc_stubs section which are
very far away from other symbols jumping to them from the __text section.  To fix this,
simply rename __objc_stubs to __text to merge them together and decrease the maximum
jumps to nowhere near 128MB.

* Source/WebCore/Configurations/WebCore.xcconfig:

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




More information about the webkit-changes mailing list