This add support for HIDDEN command which can be used to define a symbol that will be hidden and won't be exported.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Just for reference, HIDDEN command is supported by both GNU linker and as of recently gold as well.
| ELF/LinkerScript.cpp | ||
|---|---|---|
| 970 ↗ | (On Diff #68109) | I'd change this function readProvideHidden(bool Provide, bool Hidden) and then | 
| 973–974 ↗ | (On Diff #68109) | do Cmd->Provide = Provide; Cmd->Hidden = Hidden; | 
| 985–994 ↗ | (On Diff #68109) | so that I can do } else if (Tok == "PROVIDE"))
  Cmd = readProvideHidden(true, false);
} else if (Tok == "HIDDEN")) {
  Cmd = readProvideHidden(false, true);
} else if (Tok == "PROVIDE_HIDDEN")) {
  Cmd = readProvideHidden(true, true);
} |