[libc-commits] [PATCH] D151539: [libc] Initiliaze the global pointer in riscv startup code.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 30 14:04:50 PDT 2023


sivachandra added a comment.

In D151539#4375402 <https://reviews.llvm.org/D151539#4375402>, @jrtc27 wrote:

> In short this really just needs to be done in assembly as the standard `.option push; .option norelax; lla gp, __global_pointer$; .option pop`.

Thanks for the suggestion. I have updated now to use this exact snippet.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151539/new/

https://reviews.llvm.org/D151539



More information about the libc-commits mailing list