These symbols are declared early with the same value, so they otherwise
appear identical to ICF.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
LGTM. Minor nits/suggestions.
lld/ELF/Symbols.h | ||
---|---|---|
119 ↗ | (On Diff #162935) | I think this should be added after the NeedsTocRestore below. Because this group of flags is |
lld/test/ELF/linkerscript/Inputs/icf.script | ||
2 ↗ | (On Diff #162935) | I would avoid adding the input and just used echo "foo = 1; bar = 1" > %t.script instead, |
Comment Actions
LGTM
lld/ELF/ICF.cpp | ||
---|---|---|
255 ↗ | (On Diff #162935) | Please add a comment saying that linker-script-generated placeholder symbols look the same at this moment but they would have different values later. |