[all-commits] [llvm/llvm-project] cb19b8: [RuntimeDyld][ELF] Fixed relocations referencing u...

Moritz Sichert via All-commits all-commits at lists.llvm.org
Wed Feb 8 08:51:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb19b83baac1a204cb61e7fd7c8f22dac886ce39
      https://github.com/llvm/llvm-project/commit/cb19b83baac1a204cb61e7fd7c8f22dac886ce39
  Author: Moritz Sichert <sichert at in.tum.de>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
    M llvm/test/ExecutionEngine/RuntimeDyld/X86/TLS.s

  Log Message:
  -----------
  [RuntimeDyld][ELF] Fixed relocations referencing undefined TLS symbols

The classification of TLS symbols in ELF was changed from ST_Data to
ST_Other in the following commit:
018a484cd26d72fb4c9e7fd75e5f5bc7838dfc73

RuntimeDyldELF::processRelocationRef() needs to be updated to also
handle ST_Other symbols so that it handles TLS relocations correctly.
The current tests did not fail because we have a shortcut for global
symbols that are already defined.

Differential Revision: https://reviews.llvm.org/D143568




More information about the All-commits mailing list