linux-next: build failure after merge of the ftrace tree
Hi all,
After merging the ftrace tree, today's linux-next build (powerpc allyesconfig) failed like this:
Cannot find symbol for section 255: .text.opal_int_set_mfrr. arch/powerpc/platforms/powernv/opal-call.o: failed
and many more similar.
Caused by commit
9e419de4c678 ("recordmcount: Correct st_shndx handling")
(I bisected it to this.)
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the ftrace tree, today's linux-next build (powerpc allyesconfig) failed like this:
Quoted 8 lines
Cannot find symbol for section 255: .text.opal_int_set_mfrr.
arch/powerpc/platforms/powernv/opal-call.o: failedand many more similar.
Caused by commit
9e419de4c678("recordmcount: Correctst_shndxhandling")
Argh.. lemme try and reproduce :/
Quoted 9 lines · On Thu, 10 Jun 2021 10:26:39 +0200 Peter Zijlstra <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell
Hi all,
After merging the ftrace tree, today's linux-next build (powerpc allyesconfig) failed like this:
Cannot find symbol for section 255: .text.opal_int_set_mfrr.
arch/powerpc/platforms/powernv/opal-call.o: failed
Quoted 7 lines
Quoted 5 lines
and many more similar.
Caused by commit
9e419de4c678("recordmcount: Correctst_shndxhandling")Argh.. lemme try and reproduce :/
I'll go and revert this patch, and wait for a new version from Peter.
Hmm, crap, this is also sent to Linus. I'll stop that too.
-- Steve
Quoted 19 lines
Quoted 15 lines · On Thu, 10 Jun 2021 10:26:39 +0200 Peter Zijlstra <[email protected]> wrote:
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the ftrace tree, today's linux-next build (powerpc allyesconfig) failed like this:
Cannot find symbol for section 255: .text.opal_int_set_mfrr.
arch/powerpc/platforms/powernv/opal-call.o: failedand many more similar.
Caused by commit
9e419de4c678("recordmcount: Correctst_shndxhandling")
Quoted 7 lines
Quoted 1 line
Argh.. lemme try and reproduce :/
I'll go and revert this patch, and wait for a new version from Peter.
Hmm, crap, this is also sent to Linus. I'll stop that too.
-- Steve
I found the the build fail is because PPC64 is big endian and this patch use st_shndx directyly.
Here is the case which cause this problem:
recordmcount search symbol for txtndx = 255(0xff), but the corresponding symbol has st_shndx = 0xff00(bit endian) which equals SHN_LORESERVE, so the updated get_symindex() return 0.
I send the patch v2 to fix it.
https://lore.kernel.org/lkml/[email protected]/
Below is the test environment I used:
https://musl.cc/powerpc64-linux-musl-cross.tgz
make allyesconfig CROSS_COMPILE=powerpc64-linux-musl- ARCH=powerpc make vmlinux CROSS_COMPILE=powerpc64-linux-musl- ARCH=powerpc