GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — BOLT issue with Android: annotation value out of range · Issue #139245 · python/cpython Open Labels OS-androidbuildThe build process and cross-buildThe build process and cross-buildpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided DescriptionA third party has an Android NDK for arm64 linux, so I configured it into an Android chroot container. In order to run pgo (--enable-optimizations), I configured Android's linker64 into the container, but I found that Bolt would crash once it encountered the annotation/relocation section of the dynamic library. AI: Cause: ELF layout in Android/PIE mode Your llvm-bolt is in PIE + relocation mode. The Android64 linker parses the .note / .annotation section slightly differently than GNU ld/ld.lld, causing BOLT to insert an invalid value for the annotation counter. "annotation value out of range" means the profile counter number is outside the range it can encode. aarch64 relocation mode bug Under AArch64, BOLT's annotation emission does not take into account the alignment/pointer size restrictions of the Android toolchain. This is a known bug in LLVM upstream (works fine on x86-64, crashes on aarch64/PIE). libpython3.12.so.1.0 is a PIE shared object. Therefore, BOLT will definitely trigger relocation mode. The shared object contains a large number of functions (over 7000). BOLT attempts to write a counter annotation for each function, which causes the annotation section to overflow. AI:
detailed: https://chatgpt.com/share/68d15677-7658-800c-81a5-504ae7fe874d Activity
MetadataMetadataAssigneesLabelsOS-androidbuildThe build process and cross-buildThe build process and cross-buildpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |