llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

/DISCARD/ section should not be output

Open nga888 opened this issue 7 years ago • 3 comments

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.

nga888 avatar Apr 30 '19 14:04 nga888

Fixed by D62768/r362356

MaskRay avatar Jun 03 '19 05:06 MaskRay

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.

nga888 avatar May 14 '19 09:05 nga888

D61186 has been committed

MaskRay avatar May 14 '19 05:05 MaskRay