[roll] Roll fuchsia [libc] Link libc.so with -z rela on riscv64 when instrumented

The runtime instrumentation in libc.so causes many more relocs
than usual. In ld.so, there's a limit to the number of relocs it
can have itself when those are DT_REL relocs with addends.  On
RISC-V, there is no separate GOT reloc type that doesn't use
addends, so most of the additional relocs require them.  This
pushes it over the limit of the addend-saving hack used for
ld.so's double-relocation. Since DT_RELA relocs don't require
this hack, link libc with `-z rela` to counteract the compiler
driver's default `-z rel` so it has DT_RELA instead of DT_REL.

Original-Fixed: 126753
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/853538
Original-Revision: 4cc6a1be6a6f5841604769e5bdde30790b2fa8da
GitOrigin-RevId: 7926ae948f7f1dd29717fe34bcdd0de428a47ad9
Change-Id: Id85d58f70a22460139eeaaa730cad1a4c4951a28
1 file changed
tree: d9fce012285354fb9dbe055be8e1823c84548591
  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.