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
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 | ||
---|---|---|
972 | I'd change this function readProvideHidden(bool Provide, bool Hidden) and then | |
975–976 | do Cmd->Provide = Provide; Cmd->Hidden = Hidden; | |
987–996 | 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); } |
I'd change this function readProvideHidden(bool Provide, bool Hidden) and then