Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

AM335x StarterWare - Wrong gcc linker script?

$
0
0

Hi,

I'm using AM335X_StarterWare_02_00_00_07. The provided gcc makefile passes the compiler with "-fdata-sections -ffunction-sections" flags. Thus, all the static variables are placed in .bss.varname sections and not in .bss sections.

So regarding this, shouldn't the linker script include the following line? (my addition is marked with red)

        _bss_start = .;
        .bss :
        {
                *(.bss)
                *(.bss.*)
        }
        . = ALIGN(4);
        _bss_end = .;

Otherwise the static variables aren't initialized by the startup code! Is my understanding correct?

Same about .text and .data.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>