<?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 Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776916#M2979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the help. Unfortunately it doesn't seem to be the solution, &lt;/P&gt;&lt;P&gt;because this is the actually the first file&lt;/P&gt;&lt;P&gt;that is compiled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc.exe -Wall -g -fmessage-length=0 -mcpu=e200z3 -specs=&lt;/P&gt;&lt;P&gt;nosys.specs -mbig -mvle --sysroot="C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9\powerpc-eabivle\newlib" -DGCC_MPC5633&amp;nbsp; -DSTART_FROM_&lt;/P&gt;&lt;P&gt;FLASH -DMPC563xM -DE200Z3&amp;nbsp;&amp;nbsp;&amp;nbsp; -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9/include/ -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9/lib/gcc/powerpc-eabivle/4.9.4/include/ {more -I...}&amp;nbsp; -c&lt;/P&gt;&lt;P&gt;C:/system/3rdparty/etpu2/etpu/_utils/etpu_util.c -o ../bin/debug-vle/o/&lt;/P&gt;&lt;P&gt;system/3rdparty/etpu2/etpu/_utils/etpu_util.o&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the file is compiled properly without any warning.&lt;/P&gt;&lt;P&gt;Would you have another idea?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 08:48:09 GMT</pubDate>
    <dc:creator>snafu</dc:creator>
    <dc:date>2018-01-15T08:48:09Z</dc:date>
    <item>
      <title>dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776914#M2977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I moved to powerpc-eabivle-4_9 toolchain of S32DS from other vendor gnu toolchain which was able to compile only BookE. I wanted to use CodeBlocks as in the previous project so I updated library and linker path and when compilation an linking are started following commands are issued:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(majority of switches are taken from S32DS vle project created for cpu mpc5633m)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compiler:&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc.exe -Wall -g -fmessage-length=0 -mcpu=e200z3 -specs=nosys.specs -mbig --sysroot="C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\powerpc-eabivle\newlib"&amp;nbsp; -DSTART_FROM_FLASH -DMPC563xM -DE200Z3&amp;nbsp;&amp;nbsp;&amp;nbsp; -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/powerpc-eabivle-4_9/include/ -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/powerpc-eabivle-4_9/lib/gcc/powerpc-eabivle/4.9.4/include/ -c {file-to-compile.c}&amp;nbsp; {file-to-compile.o}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linker:&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc.exe&amp;nbsp; {a lof of *.o files...} -T "mpc5633-bldr-vle.ld" -nostartfiles -nostdlib -Wl,-Map=map.txt -Xlinker --gc-sections -mcpu=e200z3 -specs=nosys.specs --sysroot="C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\powerpc-eabivle\newlib"&amp;nbsp; -lm -lc -lgcc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When linking stage starts I get a lot of following errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etpu2/etpu/_utils/etpu_util.c:117:(.text+0x18): dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A&lt;BR /&gt;etpu2/etpu/_utils/etpu_util.c:123:(.text+0x52): dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A&lt;BR /&gt;etpu2/etpu/_utils/etpu_util.c:124:(.text+0x64): dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose linker is able to link vle code including vle relocation. So I don't understand why the problem arises.&lt;/P&gt;&lt;P&gt;Could anybody help to fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 14:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776914#M2977</guid>
      <dc:creator>snafu</dc:creator>
      <dc:date>2018-01-10T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776915#M2978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please make sure you also recompiled file etpu_utils/etpu_util.c by S32DS GCC VLE compiler&lt;/P&gt;&lt;P&gt;I suspect you may be linking an object file compiled by a different compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776915#M2978</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2018-01-11T15:51:18Z</dc:date>
    </item>
    <item>
      <title>Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776916#M2979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the help. Unfortunately it doesn't seem to be the solution, &lt;/P&gt;&lt;P&gt;because this is the actually the first file&lt;/P&gt;&lt;P&gt;that is compiled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc.exe -Wall -g -fmessage-length=0 -mcpu=e200z3 -specs=&lt;/P&gt;&lt;P&gt;nosys.specs -mbig -mvle --sysroot="C:\NXP\S32DS_Power_v2017.R1\Cross_Tools\&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9\powerpc-eabivle\newlib" -DGCC_MPC5633&amp;nbsp; -DSTART_FROM_&lt;/P&gt;&lt;P&gt;FLASH -DMPC563xM -DE200Z3&amp;nbsp;&amp;nbsp;&amp;nbsp; -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9/include/ -Ic:/NXP/S32DS_Power_v2017.R1/Cross_Tools/&lt;/P&gt;&lt;P&gt;powerpc-eabivle-4_9/lib/gcc/powerpc-eabivle/4.9.4/include/ {more -I...}&amp;nbsp; -c&lt;/P&gt;&lt;P&gt;C:/system/3rdparty/etpu2/etpu/_utils/etpu_util.c -o ../bin/debug-vle/o/&lt;/P&gt;&lt;P&gt;system/3rdparty/etpu2/etpu/_utils/etpu_util.o&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the file is compiled properly without any warning.&lt;/P&gt;&lt;P&gt;Would you have another idea?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 08:48:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776916#M2979</guid>
      <dc:creator>snafu</dc:creator>
      <dc:date>2018-01-15T08:48:09Z</dc:date>
    </item>
    <item>
      <title>Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776917#M2980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was this command in linker script&lt;/P&gt;&lt;P&gt;OUTPUT_FORMAT(srec)&lt;/P&gt;&lt;P&gt;When removed no relocation errors were generated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776917#M2980</guid>
      <dc:creator>snafu</dc:creator>
      <dc:date>2018-01-31T07:42:22Z</dc:date>
    </item>
    <item>
      <title>Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776918#M2981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavel&lt;/P&gt;&lt;P&gt;Seems like your "etpu_util" comes from 3rd party folder as precompiled object. If this object have been&amp;nbsp;produced using old version of binutils ( version&amp;nbsp;earlier than&amp;nbsp;2.28) - it my contain an relocation error. Since &lt;A href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=binutils/NEWS;hb=refs/tags/binutils-2_28"&gt;binutils 2.28&lt;/A&gt; this was fixed but unforunately&amp;nbsp;backward compatibility with old objects is lost. You&amp;nbsp;can try to use &lt;STRONG&gt;--vle-reloc-fixup&lt;/STRONG&gt; option for linker in order to fixup this.&lt;/P&gt;&lt;P&gt;Could you please copy here entire error from command line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 09:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776918#M2981</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2018-01-31T09:06:23Z</dc:date>
    </item>
    <item>
      <title>Re:  dangerous relocation: generic linker can't handle R_PPC_VLE_HA16A</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776919#M2982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. I compiled all the etpu_util files, so that's not the problem. Finally I solved it by removing OUTPUT_FORMAT(srec) from linker script, but I have no idea why it didn't work. It used to work with other gcc toolchain. Now I do srec by invoking powerpc-eabivle-objcopy -O {input} {outpu} and everything is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2018 22:26:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/dangerous-relocation-generic-linker-can-t-handle-R-PPC-VLE-HA16A/m-p/776919#M2982</guid>
      <dc:creator>snafu</dc:creator>
      <dc:date>2018-02-03T22:26:31Z</dc:date>
    </item>
  </channel>
</rss>

