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

@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

@jonathanpallant

Copy link
Copy Markdown
Contributor

Looks OK to me. Did some test builds and the stacks were where I expected them to be.

@jonathanpallant
jonathanpallant added this pull request to the merge queue Aug 31, 2026
@jonathanpallant
jonathanpallant removed this pull request from the merge queue due to a manual request Aug 31, 2026
@jonathanpallant

Copy link
Copy Markdown
Contributor

Whoops - @robamu can you add a CHANGELOG entry? "Replaced .filler padding section with fixed offset for stack placement in link.x" or something.

- 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 8d5a6cb to ee70de5 Compare August 31, 2026 21:41
@robamu
robamu requested a review from jonathanpallant August 31, 2026 21:43
@jonathanpallant
jonathanpallant added this pull request to the merge queue Sep 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 1, 2026
@jonathanpallant
jonathanpallant added this pull request to the merge queue Sep 1, 2026
@jonathanpallant
jonathanpallant removed this pull request from the merge queue due to a manual request Sep 1, 2026
@jonathanpallant

Copy link
Copy Markdown
Contributor

I'm hoping merging #222 will stop the queue being so unreliable.

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