Skip to content

don't explicitly --enable-pic for ZTS - #1692

Open
henderkes wants to merge 1 commit into
docker-library:masterfrom
henderkes:master
Open

henderkes wants to merge 1 commit into
docker-library:masterfrom
henderkes:master

Conversation

@henderkes

@henderkes henderkes commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

for some reason libtool strips -fpie from cflags. this results in initial-exec being selected and every tls variable access requiring 2 instructions instead of one.

# Initial-exec: load offset from GOT, then load TLS value
movq tls_cache@gottpoff(%rip), %rax
movq %fs:(%rax), %rax

# Local-exec: offset encoded directly in the instruction
movq %fs:tls_cache@tpoff, %rax

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.

1 participant