[all-commits] [llvm/llvm-project] af16a4: [LLD][ELF] - Allow relocation sections to appear ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Jul 13 04:00:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af16a45683cccc78925e71ac5d58d6cab8447840
      https://github.com/llvm/llvm-project/commit/af16a45683cccc78925e71ac5d58d6cab8447840
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    R lld/test/ELF/invalid/reloc-section-reordered.test
    A lld/test/ELF/reloc-sec-before-relocated.test

  Log Message:
  -----------
  [LLD][ELF] -  Allow relocation sections to appear before their target sections.

It allows handling cases when we have SHT_REL[A] sections before target
sections in objects.

This fixes https://bugs.llvm.org/show_bug.cgi?id=46632

which says: "Normally it is not what compilers would emit. We have to support it,
because some custom tools might want to use this feature, which is not restricted by ELF gABI"

Differential revision: https://reviews.llvm.org/D83469




More information about the All-commits mailing list