Skip to content

'Cannot find symbol for section 2: .text.' with CONFIG_FUNCTION_TRACER #986

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
nathanchance opened this issue Apr 10, 2020 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@nathanchance
Copy link
Member

With Josh Poimboeuf's series to fix objtool, Nick's elfnote patch, and Masahiro's LLVM{,IAS}=1 patches on top of mainline, using the integrated assembler with CONFIG_FUNCTION_TRACER is broken.

To reproduce:

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

$ cd linux

$ curl -LSs https://gist.github.com/nathanchance/171b7d672e311b56b4329821b8a43acd/raw/9a1dbb1f11552d0b6efec48ac29505dd0c768d1b/20200401_jpoimboe_objtool_fixes.mbx | git apply -3v

$ curl -LSs https://lore.kernel.org/lkml/[email protected]/raw | git apply -3v

$ curl -LSs 'https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/patch/?id=7e20e47c70f810d678d02941fa3c671209c4ca97' | git apply -3v --exclude Documentation/kbuild/llvm.rst

$ curl -LSs 'https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/patch/?id=a0d1c951ef08ed24f35129267e3595d86f57f5d3' | git apply -3v --exclude Documentation/kbuild/llvm.rst

$ ./scripts/config --file arch/x86/configs/x86_64_defconfig -e FUNCTION_TRACER

$ make -j$(nproc) -s LLVM=1 LLVM_IAS=1 O=out/x86_64 distclean defconfig bzImage
@nathanchance nathanchance added [BUG] Untriaged Something isn't working [TOOL] integrated-as The issue is relevant to LLVM integrated assembler [ARCH] x86_64 This bug impacts ARCH=x86_64 labels Apr 10, 2020
@nathanchance
Copy link
Member Author

Whoops, did not realize this was already reported as #981.

@nathanchance nathanchance added duplicate This issue or pull request already exists and removed [ARCH] x86_64 This bug impacts ARCH=x86_64 [BUG] Untriaged Something isn't working [TOOL] integrated-as The issue is relevant to LLVM integrated assembler labels Apr 11, 2020
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

1 participant