llvm-project
llvm-project copied to clipboard
/DISCARD/ section should not be output
| Bugzilla Link | 41673 |
| Resolution | FIXED |
| Resolved on | Jun 02, 2019 22:43 |
| Version | unspecified |
| OS | All |
| Attachments | Test to reproduce issue |
| CC | @MaskRay,@smithp35 |
Extended Description
A /DISCARD/ section that has an explicit PHDR assignment is present in the output. /DISCARD/ sections should not be output.
See https://reviews.llvm.org/D61186 for discussion regarding this issue.
Attached a test to reproduce this issue.
Fixed by D62768/r362356
D61186 was to fix the issue that /DISCARD/ sections were being treated as orphans and as a result, could cause unwanted side-effects.
D61186 does not fix the problem that an empty /DISCARD/ section can be retained in the output in certain circumstances. This is not a correctness issue, but is not ideal.
D61186 has been committed