u-boot/arch/arc
Alexey Brodkin 6e63314f43 ARC: Don't use COMMON section for global not-initialized variables
By default GCC puts global non-initialized variables in COMMON section.
And we used to ignore existence of COMMON section in our linker
scripts though smart LD silently appended it right after .bss.

And the problem here is variables from COMMON section even though
require zeroing in run-time were not zeroed as they were placed
right after __bss_end symbol.

It was a pure luck we never faced serious problem due to this,
but now it is fixed.

Now as for some other architectures we'll just force GCC to put
those global variables in normal .bss section.

This solution is much nicer than adding COMMON section to each and
every linker script.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-10-15 13:35:17 +03:00
..
cpu ARC: Use elf32-bigarc in case of -EB 2018-05-31 20:13:29 +03:00
dts arc: Add support for IoT development kit 2018-10-05 16:57:00 +03:00
include/asm arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
lib ARC: make generic print_cpuinfo() weak 2018-10-12 15:14:40 +03:00
config.mk ARC: Don't use COMMON section for global not-initialized variables 2018-10-15 13:35:17 +03:00
Kconfig arc: Add support for IoT development kit 2018-10-05 16:57:00 +03:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00