See D37332 for the discussion.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm not sure if this is the right thing to do. It feels like I could argue either this is correct or this is incorrect.
I'd think this is probably okay, but please do not copy-n-paste the same comment.
Comment Actions
Honestly, I feel the same. I can see the following pros and cons:
Pros:
- It fits POLA better because keeping symbols you explicitly asked for is just natural. I can remember that I was a bit puzzled once in the similar situation.
- It makes handling "-e" and "-u" symbols the same, see D37332#861693.
- It doesn't harm anything because without LTO those symbols would be preserved anyway.
Cons:
- As far as I know, nobody asked for it so far.
- "-u" is intended to only fetch asked symbols from archives. It says nothing about keeping symbols themselves.
Consequently, it's probably safe and makes things a bit better.