]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
Output initfini as a separate section.
authorAntti Kantee <pooka@iki.fi>
Tue, 14 Apr 2015 18:46:11 +0000 (18:46 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 14 Apr 2015 18:46:11 +0000 (18:46 +0000)
Without this, rodata and initfini would overlap.  I'll be the first
to admit I don't 100% understand why it happened, but it did, and
this change seems to address the problem.  If it ever happens again,
we'll have to get to the bottom of things.

Also, collate all of .rodata* into a single section

platform/baremetal/arch/i386/kern.ldscript

index f64419f6c8a643067c0c269f8c61f04b624b1937..c96e9eaedef5e64ab9a185e800296750b4349014 100644 (file)
@@ -20,6 +20,12 @@ SECTIONS
        AT (LOADADDR(.text) + (ADDR(.rodata) - ADDR(.text)))
        {
                *(.rodata)
+               *(.rodata.*)
+       }
+
+       .initfini :
+       AT (LOADADDR(.text) + (ADDR(.initfini) - ADDR(.text)))
+       {
                __init_array_start = . ;
                *(SORT_BY_INIT_PRIORITY(.init_array.*))
                *(SORT_BY_INIT_PRIORITY(.ctors*))