Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement smart linking, take 2 #782

Closed
wants to merge 3 commits into from
Closed

Conversation

daid
Copy link
Contributor

@daid daid commented Mar 4, 2021

Fixes #82, replaces and based on #654, including rebase and fixes.

  • Add a mechanism so that RGBASM-elided references are still emitted
  • Add more tests covering more edge cases
  • Sections should not be purged if fully constrained
  • Apply smart linking after linker script (avoids errors & interacts with above)

@daid daid marked this pull request as draft March 4, 2021 14:15
@daid daid force-pushed the smartlinking branch 2 times, most recently from cb7ef26 to 488d4e2 Compare March 9, 2021 10:13
ISSOtm and others added 3 commits March 10, 2021 13:12
Long-broken feature, fell into disrepair, got removed...
Now it's back! Though, it needs testing.
Fixes gbdev#82
Actually add the section to the smart link queue.
Fix various smart linking issues
Smart link after the linking script.
Keep fully constrained sections with smart linking.
Fix modifing the section hash map while you are iterating over it

Remove the ffpad from the smart linking tests, it does not add anything while making the test script more complex and failing on Mac
Fix some smart linking tests and remove some obviously broken/wrong ones.
Add smart linking test to check if chained references are kept
Remove -x link flag, as we cannot test everything we want with that
Add a test to check if constrained sections are kept
Add wram smart linking test, which will fail.
@Rangi42 Rangi42 added enhancement Typically new features; lesser priority than bugs rgblink This affects RGBLINK labels Mar 24, 2021
@Rangi42 Rangi42 added the WIP This PR is a work in progress label May 5, 2021
@Rangi42 Rangi42 changed the title Smartlinking Implement smart linking, take 2 Nov 23, 2023
@Rangi42 Rangi42 mentioned this pull request Mar 27, 2024
4 tasks
@Rangi42
Copy link
Contributor

Rangi42 commented Mar 27, 2024

Superseded by #1382.

@Rangi42 Rangi42 closed this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Typically new features; lesser priority than bugs rgblink This affects RGBLINK WIP This PR is a work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smart linking
3 participants