A versioned symbol alias created by .symver should copy the size from the source symbol, since it may be used by R_X86_64_COPY and the like.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Can you add a test to test/MC/ELF/symver.s?
I can add one and commit it on your behalf if you don't have commit access
llvm/test/MC/ELF/symver.s | ||
---|---|---|
26 | You can set the size of global1 instead of adding a new symbol |
Comment Actions
I think st_size is already correct. Please see line 544 if (!ESize && Base) ESize = Base->getSize();
You can set the size of global1 instead of adding a new symbol