[all-commits] [llvm/llvm-project] 480480: [lld/ELF][X86] Respect outSecOff when checking if ...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Sun Mar 24 10:43:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48048051323d5dd74057dc5f32df8c3c323afcd5
      https://github.com/llvm/llvm-project/commit/48048051323d5dd74057dc5f32df8c3c323afcd5
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2024-03-24 (Sun, 24 Mar 2024)

  Changed paths:
    M lld/ELF/Arch/X86_64.cpp
    M lld/test/ELF/x86-64-gotpc-relax-too-far.s

  Log Message:
  -----------
  [lld/ELF][X86] Respect outSecOff when checking if GOTPCREL can be relaxed (#86334)

The existing implementation didn't handle when the input text section
was some offset from the output section.

This resulted in an assert in relaxGot() with an lld built with asserts
for some large binaries, or even worse, a silently broken binary with an
lld without asserts.



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