[all-commits] [llvm/llvm-project] d001ab: [ELF] Don't fall back to .text for e_entry

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 20 09:35:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d001ab82e410d0c6ccf14be9f507c8aca53abc67
      https://github.com/llvm/llvm-project/commit/d001ab82e410d0c6ccf14be9f507c8aca53abc67
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M lld/ELF/Writer.cpp
    M lld/docs/ReleaseNotes.rst
    M lld/test/ELF/basic-ppc.s
    M lld/test/ELF/basic-ppc64.s
    M lld/test/ELF/entry.s

  Log Message:
  -----------
  [ELF] Don't fall back to .text for e_entry

We have the rule to simulate
(https://sourceware.org/binutils/docs/ld/Entry-Point.html),
but the behavior is questionable
(https://sourceware.org/pipermail/binutils/2021-September/117929.html).

gold doesn't fall back to .text.
The behavior is unlikely relied by projects (there is even a warning for
executable links), so let's just delete this fallback path.

Reviewed By: jhenderson, peter.smith

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




More information about the All-commits mailing list