Skip to content

Arm backend: Fix standalone runner link order#20756

Merged
bdemirb merged 2 commits into
pytorch:mainfrom
bdemirb:fix-arm-runner-link-order
Jul 7, 2026
Merged

Arm backend: Fix standalone runner link order#20756
bdemirb merged 2 commits into
pytorch:mainfrom
bdemirb:fix-arm-runner-link-order

Conversation

@bdemirb

@bdemirb bdemirb commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Fix the Arm semihosting executor runner link order used by setup_testing.sh. The previous link line placed backend archives before the objects and dependent archives that reference them, so ld could miss bare-metal symbols when building the standalone runners.

Group the runner libraries and keep the backend archives in a whole-archive region after clearing their inherited interface link options. This keeps symbols visible to the linker while preserving the existing runner setup.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Fix the Arm semihosting executor runner link order used by
setup_testing.sh. The previous link line placed backend archives
before the objects and dependent archives that reference them, so ld
could miss bare-metal symbols when building the standalone runners.

Group the runner libraries and keep the backend archives in a
whole-archive region after clearing their inherited interface link
options. This keeps symbols visible to the linker while preserving the
existing runner setup.

Signed-off-by: Baris Demir <baris.demir@arm.com>
Change-Id: Ib1bb2e3a39a3b955556cd67847f74c6ff6d159ab
@pytorch-bot

pytorch-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20756

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 New Failures, 1 Unrelated Failure

As of commit 5fde7b6 with merge base fa49f8f (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 6, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jul 6, 2026
@bdemirb

bdemirb commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "partner: arm"

@pytorch-bot pytorch-bot Bot added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Jul 6, 2026
@bdemirb

bdemirb commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "release notes: arm"

@pytorch-bot pytorch-bot Bot added the release notes: arm Changes to the ARM backend delegate label Jul 6, 2026

@zingo zingo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice OK to merge but if not done it would be good to mind so no unneeded code/data was added now when more stuff might be linked it. e.g. dieas reallt cmsis-nn/timeing_adaptors and ethos_mhu_dumme ethosu_mailbox
and ethosu_uart_cmsdk_apb need to be -whole_archive ?

@bdemirb bdemirb merged commit f8c8334 into pytorch:main Jul 7, 2026
494 of 502 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants