Skip to content
Unverified Commit 8592241e authored by Job Noorman's avatar Job Noorman Committed by GitHub
Browse files

[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.
parent 2371d0ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment