Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing musl Makefile to use -O0 explicitly causes arm64 STLXR -> LDAXR pair to fail on real machines #42

Open
Sengming opened this issue Jul 24, 2019 · 0 comments
Labels

Comments

@Sengming
Copy link
Collaborator

In case anyone makes this mistake like I did. This will cause atomic arm64 instructions STLXR and LDAXR in a_fetch_and() or a_fetch_or() musl functions to fail and get stuck in an infinite loop. These are called in malloc().

$(OPTIMIZE_SRCS:$(srcdir)/%.c=obj/%.o) $(OPTIMIZE_SRCS:$(srcdir)/%.c=obj/%.lo): CFLAGS += -O3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant