Skip to content

Add aarch64a_standalone baremetal runtime variant#230

Open
pzhengqc wants to merge 1 commit into
qualcomm:qualcomm-softwarefrom
pzhengqc:aarch64a-standalone
Open

Add aarch64a_standalone baremetal runtime variant#230
pzhengqc wants to merge 1 commit into
qualcomm:qualcomm-softwarefrom
pzhengqc:aarch64a-standalone

Conversation

@pzhengqc

@pzhengqc pzhengqc commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

This is to support the libc-standalone.a variant from musl-embedded.

{
"variant": "aarch64a_standalone",
"json": "aarch64a_standalone.json",
"flags": "--target=aarch64-unknown-none-elf -fmultilib-flag=standalone",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you please explain what does this flag do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a multilib custom flag (https://clang.llvm.org/docs/Multilib.html#multilib-custom-flags) used only for multilib selection. We have already added a few other custom flag to help with multilib selection for variants like shadow call stack, multi-threading, etc.

- Name: no-threads
- Name: threads
Default: threads
- Name: standalone

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it might be worth making this more generic to accommodate the uselocks and uselocks/standalone variants.

Doesn't need to be exactly this, but so we can have something like:

- Name: musl-subvariant
  Values:
    - Name: standalone
    - Name: uselocks
    - Name: no-subvariant
  Default: no-subvariant

(I don't necessarily mind if we do something like this when adding those either)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. I've renamed according to your suggestion to accommodate other variants. I'll add an entry for uselock in a separate patch when adding the uselock variant.

This is to support the libc-standalone.a variant from musl-embedded.

Signed-off-by: Pengxuan Zheng <pzheng@qti.qualcomm.com>
@pzhengqc pzhengqc force-pushed the aarch64a-standalone branch from 462e1ae to f860b98 Compare March 4, 2026 23:33
@jonathonpenix

Copy link
Copy Markdown
Contributor

LGTM, thank you!

@apazos

Copy link
Copy Markdown
Contributor

pzhengqc, let's hold off on this patch. Might not have users for it anylonger.

@apazos Ana Pazos (apazos) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's hold on from merging, no clear user of these variants.

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.

4 participants