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

Add a pad segment #312

Closed
hensldm opened this issue Dec 8, 2023 · 3 comments · Fixed by #319
Closed

Add a pad segment #312

hensldm opened this issue Dec 8, 2023 · 3 comments · Fixed by #319

Comments

@hensldm
Copy link
Contributor

hensldm commented Dec 8, 2023

No description provided.

@mkst
Copy link
Collaborator

mkst commented Dec 15, 2023

What would a "pad" segment do, compared to either "bin" or using align/subalign?

@hensldm
Copy link
Contributor Author

hensldm commented Dec 16, 2023

The idea would be just advance the linker script by some amount (e.g. . += 0x10).
Bin would still dump a file of zeros which seems wasteful. However, I did not know about align, but it does seem all the use cases I know of seem to be aligned to 0x40 boundaries so maybe it would work.

@hensldm
Copy link
Contributor Author

hensldm commented Dec 17, 2023

Tried manually putting an . = ALIGN(., 64) but that did not seem to work, so I don't think just using align/subalign would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants