x86: Group sections for QuarkX1000

Child sections can be created depending on the CFLAGS used when building Contiki.
For instance, if built with -ffunction-sections or -fdata-sections would create
one section per function/variable and -Os sometimes split part of .text into one
child section.

This can also be an issue if we start linking with external libraries that are
built in such a way. Since we can't foresee how the port is going to be used,
we should make sure it is ready for the cases above.

This patch fixes this by correctly grouping child sections into their parent
sections.

Patch developed while investigating a bug with José Souza (jose.souza@intel.com).
This commit is contained in:
Jesus Sanchez-Palencia 2015-07-22 09:27:40 -03:00
parent e41bed319f
commit bdcf58033a

View File

@ -42,7 +42,7 @@ SECTIONS {
.text ALIGN (4K) :
{
*(.multiboot)
*(.text)
*(.text*)
}
.rodata ALIGN (4K) :
@ -52,12 +52,12 @@ SECTIONS {
.data ALIGN (4K) :
{
*(.data)
*(.data*)
}
.bss ALIGN (4K) :
{
*(COMMON)
*(.bss)
*(.bss*)
}
}