commit | 7aaae073242505307c0415ad157d7a872a345b85 | [log] [tgz] |
---|---|---|
author | Jessica Clarke <jrtc27@jrtc27.com> | Wed May 31 18:30:36 2023 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Wed May 31 10:53:11 2023 -0700 |
tree | 3e3cc57b9cf1054de8af24626c9b5b51f3686ecf | |
parent | e2571348165f4e677152fd6e47fcf5c685c1c5cd [diff] |
[RISCV] Lower extern_weak symbols using the GOT for the medany model Such symbols may be undefined at link time and thus resolve to 0, which may be further than 2GiB away from PC, causing the immediate to be out of range for PC-relative addressing. Using the GOT avoids this, and is the approach taken by AArch64. Reviewed By: asb, MaskRay, arichardson Differential Revision: https://reviews.llvm.org/D107280 GitOrigin-RevId: a178ba9fbd0a27057dc2fa4cb53c76caa013caac