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

hermiticity issues in scripts/kconfig/ and arch/x86/tools/ #1836

Closed
nickdesaulniers opened this issue Apr 18, 2023 · 2 comments
Closed

hermiticity issues in scripts/kconfig/ and arch/x86/tools/ #1836

nickdesaulniers opened this issue Apr 18, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@nickdesaulniers
Copy link
Member

I have some hacked up broken version of clang; but I noticed that an LLVM=1 build is producing errors from /usr/bin/ld which was unexpected:

/usr/bin/ld: scripts/kconfig/lexer.lex.o: warning: relocation in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/genheaders-2fc1a9.o: warning: relocation against `main' in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: arch/x86/tools/relocs_common.o: warning: relocation against `die' in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/sorttable-1f6e86.o: warning: relocation in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /android0/kernel-all/tools/objtool/libsubcmd/libsubcmd.a(libsubcmd-in.o): warning: relocation in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/gen_init_cpio-ade390.o: warning: relocation against `main' in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/extract-cert-03ebf9.o: warning: relocation in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/vdso2c-d90758.o: warning: relocation in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
/usr/bin/ld: /tmp/conmakehash-f74a4f.o: warning: relocation against `main' in read-only section `noreturn_fns'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

nevermind the specific error message; it's the invocation of /usr/bin/ld for those inputs that's unexpected.

@nickdesaulniers nickdesaulniers added hermetic builds has implications for doing gcc/binutils-free builds [ARCH] x86_64 This bug impacts ARCH=x86_64 labels Apr 18, 2023
@nathanchance
Copy link
Member

Isn't this #479? Those are both host programs, so it is going to use the default linker of HOSTCC, unless HOSTLDFLAGS=-fuse-ld=lld is used.

@nickdesaulniers
Copy link
Member Author

ah, right

@nickdesaulniers nickdesaulniers added duplicate This issue or pull request already exists and removed [ARCH] x86_64 This bug impacts ARCH=x86_64 hermetic builds has implications for doing gcc/binutils-free builds labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants