<?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>ColdFire/68K Microcontrollers and Processors中的主题 gcc, linker script, elf, static data and FLASH</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/gcc-linker-script-elf-static-data-and-FLASH/m-p/128971#M638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I specify that static variables goes into the SRAM, but their init values goes into the FLASH so I can do a copy on boot?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I specify that static data (.data section) should go in the FLASH it will be read-only. If I specify that the .data section should go in the SRAM I don't the init values (the latter is OK if you have something to load an ELF file into memory).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 22:12:13 GMT</pubDate>
    <dc:creator>Petter</dc:creator>
    <dc:date>2007-03-30T22:12:13Z</dc:date>
    <item>
      <title>gcc, linker script, elf, static data and FLASH</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/gcc-linker-script-elf-static-data-and-FLASH/m-p/128971#M638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I specify that static variables goes into the SRAM, but their init values goes into the FLASH so I can do a copy on boot?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I specify that static data (.data section) should go in the FLASH it will be read-only. If I specify that the .data section should go in the SRAM I don't the init values (the latter is OK if you have something to load an ELF file into memory).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 22:12:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/gcc-linker-script-elf-static-data-and-FLASH/m-p/128971#M638</guid>
      <dc:creator>Petter</dc:creator>
      <dc:date>2007-03-30T22:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: gcc, linker script, elf, static data and FLASH</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/gcc-linker-script-elf-static-data-and-FLASH/m-p/128972#M639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I can solve this by putting the static data in the .data section (in SRAM), and then write a small util to extract the data from the elf file and make a copy in the .rodata section (in FLASH). Then I can copy the static data at startup.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 16:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/gcc-linker-script-elf-static-data-and-FLASH/m-p/128972#M639</guid>
      <dc:creator>Petter</dc:creator>
      <dc:date>2007-04-02T16:01:27Z</dc:date>
    </item>
  </channel>
</rss>

