[all-commits] [llvm/llvm-project] ffe2b6: [lld][ELF][test] Fix excessive output file size in...

WÁNG Xuěruì via All-commits all-commits at lists.llvm.org
Wed Jul 26 07:17:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffe2b6f75de55b665520669059c3d95240482d54
      https://github.com/llvm/llvm-project/commit/ffe2b6f75de55b665520669059c3d95240482d54
  Author: WANG Xuerui <git at xen0n.name>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M lld/test/ELF/loongarch-add-sub.s

  Log Message:
  -----------
  [lld][ELF][test] Fix excessive output file size in loongarch-add-sub.s

Initially the .rodata section came before .text, hence sharing its
segment with the program header sitting at a small offset, pushing the
output file size to ~72GiB (the file was sparse though, so not much is
really written). This breaks on 32-bit platforms and is irrelevant to
the feature being tested, so re-order the two sections so .text gets
processed first, and both sections get their own segment.

This addresses the issue found by the clang-armv8-lld-2stage builder:
    https://lab.llvm.org/buildbot/#/builders/178/builds/5340

Reviewed By: SixWeining, xry111

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




More information about the All-commits mailing list