]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Add .lbss to ldscript
authorAntti Kantee <pooka@iki.fi>
Thu, 10 Dec 2015 01:18:50 +0000 (01:18 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 10 Dec 2015 01:18:50 +0000 (01:18 +0000)
Ensures that .lbss stuff stays before _end, which in turn
makes memory allocation work a lot better.

Should add ldata and lrodata too, but I'm hating these
copypasteware ldscripts, so need to fix the ldscript
infra first.

platform/hw/arch/amd64/kern.ldscript
platform/hw/arch/i386/kern.ldscript

index 74574475ad3fd12d2e35a528d7c168df0ff9ac22..d3b447f0974bba2e1439bba28ecf5abccdf2e3a1 100644 (file)
@@ -75,6 +75,13 @@ SECTIONS
                *(.bss.*)
                *(COMMON)
        }
+       .lbss :
+       AT (LOADADDR(.text) + (ADDR(.lbss) - ADDR(.text)))
+       {
+               *(.lbss)
+               *(.lbss.*)
+               *(LARGE_COMMON)
+       }
        _ebss = . ;
        _end = . ;
 }
index 807ceda7f10cbb0e6645a23dd2792bc681849ed6..38ad379e432d2a7ab6e601838522a767b356b36a 100644 (file)
@@ -71,6 +71,13 @@ SECTIONS
                *(COMMON)
                *(.bootstack)
        }
+       .lbss :
+       AT (LOADADDR(.text) + (ADDR(.lbss) - ADDR(.text)))
+       {
+               *(.lbss)
+               *(.lbss.*)
+               *(LARGE_COMMON)
+       }
        _end = . ;
        PROVIDE (end = .) ;
 }