powerpc/motorola_power: Place any common data in the .bss section

- It seems the compiler how defaults to -fcommon and this means
  some uninitialised data is ignored.

Closes #4266
This commit is contained in:
Chris Johns
2021-02-26 13:54:37 -10:00
parent 75fb7a0ee5
commit 96918affc3

View File

@@ -40,6 +40,7 @@ SECTIONS
*(.text)
*(.text*)
*(.sdata2)
*(.sdata2*)
*(.rodata)
*(.rodata*)
}
@@ -72,13 +73,17 @@ SECTIONS
*(.data)
*(.data*)
*(.sdata)
*(.sdata*)
. = ALIGN(4);
_data_end = .;
}
.bss :
{
*(.sbss)
*(.sbss*)
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_bss_end = .;
}
@@ -96,6 +101,7 @@ SECTIONS
/DISCARD/ :
{
*(.comment)
*(.comment*)
*(.debug*)
}
}