diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-06-28 09:51:33 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-06-28 09:51:33 +0000 |
commit | dbe843d602488af7b8095babf582db65fa8a4b4e (patch) | |
tree | c226d5b61c67b79bf3fdc8c198ad7b372cae823a /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | b01e6b5a521120626368d9b8999fde67c45055c8 (diff) | |
download | bcm5719-llvm-dbe843d602488af7b8095babf582db65fa8a4b4e.tar.gz bcm5719-llvm-dbe843d602488af7b8095babf582db65fa8a4b4e.zip |
[ELF] - Do not set st_size field of SHT_UNDEF symbols.
This fixes PR33598.
Size field for undefined symbols is not significant.
Setting it to fixed value, like zero, may be useful though.
For example when we have 2 DSO's, like in this PR, if lower level DSO may
change slightly (in part of some symbol's st_size) and higher-level DSO is
rebuilt, then tools that monitoring checksum of high level DSO file can notice
it and trigger cascade of some other unnecessary actions.
If we set st_size to zero, that can be avoided.
Differential revision: https://reviews.llvm.org/D34673
llvm-svn: 306526
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions