Demote linkage of LLVM IR global values to private #291

Merged
sb10q merged 1 commits from occheung/nac3:restrict-linkage into master 2022-05-30 22:46:42 +08:00

Description

The PR forcefully demotes the linkage of all global values to private after linking the modules, such that GOT entries will not be generated. 2 symbols are exempt from the demotion:

  • typeinfo: The kernel will need to read it;
  • now: To preserve RISC-V now-pinning feature.
## Description The PR forcefully demotes the linkage of all global values to private after linking the modules, such that GOT entries will not be generated. 2 symbols are exempt from the demotion: - `typeinfo`: The kernel will need to read it; - `now`: To preserve RISC-V now-pinning feature.
occheung added 1 commit 2022-05-30 18:03:35 +08:00
2584776b6e nac3artiq: demote global value to private
... except typeinfo & now symbols.
typeinfo will be read by the runtime linker; now is for now-pinning.
sb10q merged commit 48fc5ceb8e into master 2022-05-30 22:46:42 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#291
There is no content yet.