[roll] Roll fuchsia [ld] Fix ld-unittests in instrumented builds

This fixes a couple of problems in instrumented builds.

The build rules for the test data needed to account for the
libprefix an instrumented variant toolchain might use in the
PT_INTERP.  This is already handled implicitly for the Zircon
case, but the explicit host_test_data() plumbing for the Linux
case needed to change.  Also, the compile-time plumbing for the
prefix to use for in-process tests that already existed for
Zircon needed to be used for the Linux version as well.

At runtime, the Linux version had the same issue seen on Zircon
with write-protecting the bss when functions already in progress
still touch the counters there via calculating with an old cached
__llvm_profile_counter_bias value taken at function entry.  So
the posix-startup.cc code needed the same workaround that Zircon
uses to disable the write-protection when using llvm-profdata.

A previous change had disabled the spawn-process tests altogether
since more work is needed for the Zircon version to work.  This
also re-enables them for the Linux version so these cases are
again tested to prevent any regressions creeping in before the
Zircon spawn-process tests are ready to be enabled.

Original-Fixed: 132169
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/903339
Original-Revision: a3060f44b581216a5de2ec8d708aadaac4f4c2c4
GitOrigin-RevId: c9593eee31708423887b0e45b4347c110903d4cf
Change-Id: Iae4b2839d3fcf9eb0aef4161cc7858b8f7486065
1 file changed
tree: abbdc91238940b1e7c53762a4b20d84da0aef01a
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.