Skip to content

Keep ppc64le linker stubs within branch range - #1182

Open
anutosh491 wants to merge 1 commit into
compiler-research:mainfrom
anutosh491:fix-ppc64le-link-stubs
Open

anutosh491 wants to merge 1 commit into
compiler-research:mainfrom
anutosh491:fix-ppc64le-link-stubs

Conversation

@anutosh491

@anutosh491 anutosh491 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

The ppc64le build fails linking libclangCppInterOp.so with R_PPC64_REL24 relocations to at_quick_exit and pthread_atfork in glibc's nonshared archives.

Call these two registration functions through volatile function pointers instead. This removes the range-limited direct branches while keeping the registration behavior. The existing glibc tests cover both hooks.

I checked the generated ppc64le object code: direct calls emit R_PPC64_REL24, while the replacement uses indirect calls with no R_PPC64_REL24 relocation to either helper. The CppInterOp 2.0 feedstock backport applies cleanly, CI will verify the full link.

Failing build: https://github.com/conda-forge/cppinterop-feedstock/actions/runs/42777735733/job/129700098271

@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.86%. Comparing base (c212c5c) to head (12ca792).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1182   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files          24       24           
  Lines        7014     7017    +3     
=======================================
+ Hits         6233     6236    +3     
  Misses        781      781           
Files with missing lines Coverage Δ
lib/CppInterOp/CompatibilityGLIBC.h 93.54% <100.00%> (+0.21%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/CompatibilityGLIBC.h 93.54% <100.00%> (+0.21%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anutosh491
anutosh491 force-pushed the fix-ppc64le-link-stubs branch from 58944b8 to 2a2e2a9 Compare November 10, 2026 07:59
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@anutosh491
anutosh491 force-pushed the fix-ppc64le-link-stubs branch from 2a2e2a9 to 12ca792 Compare November 10, 2026 12:16
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

This branch has not been deployed

No deployments
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