Skip to content

AArch64: Linker not removing unused functions (gc-sections related) #53185

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

Closed
rovka opened this issue Jan 13, 2022 · 6 comments
Closed

AArch64: Linker not removing unused functions (gc-sections related) #53185

rovka opened this issue Jan 13, 2022 · 6 comments

Comments

@rovka
Copy link
Collaborator

rovka commented Jan 13, 2022

I'm seeing 6 new check-all failures between rc1 and rc2 for llvm-13.0.1 on AArch64:
Profile-aarch64 :: Linux/coverage-linkage-lld.cpp
Profile-aarch64 :: Linux/coverage-weak-lld.cpp
Profile-aarch64 :: instrprof-gc-sections.c
libFuzzer :: gc-sections.test
libFuzzer :: gc-sections.test
libFuzzer :: gc-sections.test

Attaching log here:
rc2-new-failures.txt

On a very superficial investigation it seems the linker is not removing some unused functions.

@tstellar tstellar added this to the LLVM 13.0.1 release milestone Jan 13, 2022
@tstellar
Copy link
Collaborator

@MaskRay Is this related to 9d9efb1 ?

@MaskRay
Copy link
Member

MaskRay commented Jan 14, 2022

@MaskRay Is this related to 9d9efb1 ?

Yes. So people know that I object to default (-z nostart-stop-gc) in release/13.x: https://llvm.discourse.group/t/lld-default-nostart-stop-gc-default-on-release-13-x-and-main/5369

(In Debian Code Search, there may be like 20+ packages using the feature. After deduplication, they may be fewer. Wow, some people argue that it is supported linker interface while in practice it wasn't. And I've spent so much time on it....)

@rovka
Copy link
Collaborator Author

rovka commented Jan 14, 2022

For the record, this is also affecting armv7.
I'm not sure if this is a blocker, since it seems to be a known issue. Is there something I can/should do on my side before shipping the release binaries?

@tstellar
Copy link
Collaborator

@rovka Can you re-test the release/13.x branch? I've reverted the commit that I think caused this.

@llvmbot
Copy link
Member

llvmbot commented Jan 15, 2022

@llvm/issue-subscribers-backend-aarch64

@rovka
Copy link
Collaborator Author

rovka commented Jan 17, 2022

@tstellar That works, thanks!

@rovka rovka closed this as completed Jan 17, 2022
tstellar added a commit to tstellar/llvm-project that referenced this issue Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants