Skip to content

Conversation

@quic-seaswara
Copy link
Contributor

TBSS sections are special, they do not consume any virtual memory size at load time, they incur a cost only when setting up size of the initial TLS image by either libc or libpthread.

Creating a segment when a TBSS section is encountered causes linker to create an empty segment.

Resolves #353

@quic-seaswara quic-seaswara force-pushed the fix_tbss_empty_segment branch 2 times, most recently from 448397e to 5db4204 Compare September 4, 2025 19:49
TBSS sections are special, they do not consume any virtual memory size
at load time, they incur a cost only when setting up size of the initial
TLS image by either libc or libpthread.

Creating a segment when a TBSS section is encountered causes linker to
create an empty segment.

Resolves #353

Signed-off-by: Shankar Easwaran <[email protected]>
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.

empty segment created when the image has only tbss

2 participants