qualcomm / qualcomm/eld

Add a test that ensures `LinkerWrapper::markAsDiscarded()` does not trigger unbalanced fragment moves

Open
#583 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p4 (nice to have but not planned) testing
Dominant language
C++
Stars
259
Forks
84
Avg merge
2d 14h
Merged PRs (30d)
72

Description

Discarding a section using LinkerWrapper::markAsDiscarded() is a valid use case and should not be treated as an unbalanced fragment move. We should add test for this functionality to make sure that we do not break this behavior by mistake in the future.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing tests for LinkerWrapper and checks for unbalanced fragment moves, then start from the markAsDiscarded() behavior described in the issue. Add a regression test showing that discarding a section does not trigger an unbalanced fragment move; done means the test passes without that diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.