Skip to content

avoid explicit .filler section - #217

Open
robamu wants to merge 1 commit into
mainfrom
no-explicit-filler-section
Open

avoid explicit .filler section#217
robamu wants to merge 1 commit into
mainfrom
no-explicit-filler-section

Conversation

@robamu

@robamu robamu commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

When placing the filler into the STACK region, it counts towards .bss when displaying it with tools like llvm-size. no idea why. when we calculate the start of stacks without a dedicated filler segment, i don't have that issue. however, i still want to do some tests because maybe there was a reason this was done with an explicit section?

@robamu

robamu commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

oh, forgot something really important when copy-and-pasting this from a z7link.x . the STACKS section now needs an explicit address

@jonathanpallant

Copy link
Copy Markdown
Contributor

@umohr-irs wrote that code in #93, IIRC

- The .filler section would count to the .bss segment for tools like
  llvm-size which lead to bloated/wrong .bss segment information.
@robamu
robamu force-pushed the no-explicit-filler-section branch from 366d5c0 to 3dd47c0 Compare August 28, 2026 16:53
@robamu
robamu marked this pull request as ready for review August 28, 2026 16:53
@robamu

robamu commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

maybe the .filler segment is required to detect overlaps?

@robamu

robamu commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

No, i tested a bit, and i get overlap errors when .stacks overlaps with .bss

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 this pull request may close these issues.

2 participants