[all-commits] [llvm/llvm-project] 859224: [BOLT] Fix reorder data test for RISC-V (#68996)

Job Noorman via All-commits all-commits at lists.llvm.org
Mon Oct 16 01:11:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8592241e29e29f0e7e407e0989489c6e70c91c42
      https://github.com/llvm/llvm-project/commit/8592241e29e29f0e7e407e0989489c6e70c91c42
  Author: Job Noorman <jnoorman at igalia.com>
  Date:   2023-10-16 (Mon, 16 Oct 2023)

  Changed paths:
    M bolt/test/reorder-data-writable-ptload.c

  Log Message:
  -----------
  [BOLT] Fix reorder data test for RISC-V (#68996)

On RISC-V, small data objects are put in the `.sdata` section by
default. This causes the `reorder-data-writable-ptload.c` test to fail
since it hard-codes the section to optimize to `.data`.

This patch passes the `-fPIC -pie` flags to clang to ensure the objects
are added to `.data` on RISC-V.




More information about the All-commits mailing list