[all-commits] [llvm/llvm-project] c22d84: [ELF] Refine ctx.arg.exportDynamic condition

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Feb 16 12:12:23 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c22d84f7bb58005638b24f976582acf62a56d19d
      https://github.com/llvm/llvm-project/commit/c22d84f7bb58005638b24f976582acf62a56d19d
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-02-16 (Sun, 16 Feb 2025)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/Symbols.cpp
    M lld/ELF/Writer.cpp
    M lld/test/ELF/lto/devirt_vcall_vis_export_dynamic.ll

  Log Message:
  -----------
  [ELF] Refine ctx.arg.exportDynamic condition

--export-dynamic should be a no-op when ctx.hasDynsym is false.

* Drop unneeded ctx.hasDynsym checks.
* Static linking with --export-dynamic does not prevent devirtualization.



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