summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/dynrelocsec-remove-shinfo-reference.test
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-objcopy] - Check dynamic relocation sections for broken references.George Rimar2019-04-301-0/+30
This is a fix for https://bugs.llvm.org/show_bug.cgi?id=41371. Currently, it is possible to break the sh_link field of the dynamic relocation section by removing the section it refers to. The patch fixes an issue and adds 2 test cases. One of them shows that it does not seem possible to break the sh_info field. I added an assert to verify this. Differential revision: https://reviews.llvm.org/D60825 llvm-svn: 359552
OpenPOWER on IntegriCloud