<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Linking error, relocations from elf64-powerpc -&amp;gt; elf32-powerpc not supported in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Linking-error-relocations-from-elf64-powerpc-gt-elf32-powerpc/m-p/282939#M902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a kernel module that will build if built against a 32bit 5020 powerpc kernel (3.0.6), switching the .config to 64bits, the out of tree module fails to compile unless -m64 is added. With -m64 added it compiles but then fails at link with the following linker error.&lt;/P&gt;&lt;P&gt;This code has been in use a long time on numerous systems but the move to 64bits is new.&lt;/P&gt;&lt;P&gt;The error message does not really help localize the issue, does anyone have any ideas how to get some more information out of the build to help debug this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;mkdir -p /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_versions ; rm -f /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_versions/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;make -f scripts/Makefile.build obj=/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; /tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/powerpc-linux-gnu-gcc -DNCP_LINUX -DNCP_BIG_ENDIAN -DNCP_SAL_HOSTMEM_NVM -DPROC_EP5020 -fno-strict-aliasing -mno-mfcrf -mcpu=e5500&amp;nbsp;&amp;nbsp; -m64 -Wp,-MD,/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.ncp_dev.o.d&amp;nbsp; -nostdinc -isystem /tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/../lib/gcc/powerpc-linux-gnu/4.5.1/include -I/workspace/sw/mholmes/EP5020A/linux/build.ep5020a.acpx1/ep5020a_kernel_3.0.6/arch/powerpc/include -Iarch/powerpc/include/generated -Iinclude&amp;nbsp; -include include/generated/autoconf.h -D__KERNEL__ -Iarch/powerpc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -msoft-float -pipe -Iarch/powerpc -mminimal-toc -mtraceback=no -mcall-aixdesc -mtune=power4 -mno-altivec -mno-spe -mspe=no -funit-at-a-time -fno-dwarf2-cfi-asm -mno-string -Wa,-me500 -mno-mfcrf -Wframe-larger-than=1024 -fno-stack-protector -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNCP_LINUX -DNCP_BIG_ENDIAN -DNCP_SAL_HOSTMEM_NVM -DPROC_EP5020 -D_FILE_OFFSET_BITS=64 -DFORCE_POLLING_MODE -DNCP_LINUX -DNCP_DEV_PCI&amp;nbsp; -DMODULE&amp;nbsp; -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ncp_dev)"&amp;nbsp; -D"KBUILD_MODNAME=KBUILD_STR(ncp)" -c -o /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_ncp_dev.o /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/ncp_dev.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #ff0000;"&gt;/tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/powerpc-linux-gnu-ld: Relocatable linking with relocations from format elf64-powerpc (/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_ncp_dev.o) to format elf32-powerpc (/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/ncp_dev.o) is not supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 13:59:57 GMT</pubDate>
    <dc:creator>mike99</dc:creator>
    <dc:date>2013-04-24T13:59:57Z</dc:date>
    <item>
      <title>Linking error, relocations from elf64-powerpc -&gt; elf32-powerpc not supported</title>
      <link>https://community.nxp.com/t5/P-Series/Linking-error-relocations-from-elf64-powerpc-gt-elf32-powerpc/m-p/282939#M902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a kernel module that will build if built against a 32bit 5020 powerpc kernel (3.0.6), switching the .config to 64bits, the out of tree module fails to compile unless -m64 is added. With -m64 added it compiles but then fails at link with the following linker error.&lt;/P&gt;&lt;P&gt;This code has been in use a long time on numerous systems but the move to 64bits is new.&lt;/P&gt;&lt;P&gt;The error message does not really help localize the issue, does anyone have any ideas how to get some more information out of the build to help debug this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;mkdir -p /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_versions ; rm -f /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_versions/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;make -f scripts/Makefile.build obj=/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; /tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/powerpc-linux-gnu-gcc -DNCP_LINUX -DNCP_BIG_ENDIAN -DNCP_SAL_HOSTMEM_NVM -DPROC_EP5020 -fno-strict-aliasing -mno-mfcrf -mcpu=e5500&amp;nbsp;&amp;nbsp; -m64 -Wp,-MD,/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.ncp_dev.o.d&amp;nbsp; -nostdinc -isystem /tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/../lib/gcc/powerpc-linux-gnu/4.5.1/include -I/workspace/sw/mholmes/EP5020A/linux/build.ep5020a.acpx1/ep5020a_kernel_3.0.6/arch/powerpc/include -Iarch/powerpc/include/generated -Iinclude&amp;nbsp; -include include/generated/autoconf.h -D__KERNEL__ -Iarch/powerpc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -msoft-float -pipe -Iarch/powerpc -mminimal-toc -mtraceback=no -mcall-aixdesc -mtune=power4 -mno-altivec -mno-spe -mspe=no -funit-at-a-time -fno-dwarf2-cfi-asm -mno-string -Wa,-me500 -mno-mfcrf -Wframe-larger-than=1024 -fno-stack-protector -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNCP_LINUX -DNCP_BIG_ENDIAN -DNCP_SAL_HOSTMEM_NVM -DPROC_EP5020 -D_FILE_OFFSET_BITS=64 -DFORCE_POLLING_MODE -DNCP_LINUX -DNCP_DEV_PCI&amp;nbsp; -DMODULE&amp;nbsp; -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ncp_dev)"&amp;nbsp; -D"KBUILD_MODNAME=KBUILD_STR(ncp)" -c -o /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_ncp_dev.o /workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/ncp_dev.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #ff0000;"&gt;/tools/AGRtools/ep/ep5020a/freescale-2010.09/bin/powerpc-linux-gnu-ld: Relocatable linking with relocations from format elf64-powerpc (/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/.tmp_ncp_dev.o) to format elf32-powerpc (/workspace/sw/mholmes/EP5020A/trunk/rte/api/nca/linux_kernel/pci/ncp_dev.o) is not supported&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:59:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Linking-error-relocations-from-elf64-powerpc-gt-elf32-powerpc/m-p/282939#M902</guid>
      <dc:creator>mike99</dc:creator>
      <dc:date>2013-04-24T13:59:57Z</dc:date>
    </item>
  </channel>
</rss>

