]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
build: alloc space for sched list in the link file
authorJonathan Creekmore <jonathan.creekmore@gmail.com>
Thu, 21 Jan 2016 15:06:10 +0000 (16:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2016 15:06:10 +0000 (16:06 +0100)
Creates a section to contain scheduler entry pointers that are gathered
together into an array. This will allow, in a follow-on patch, scheduler
entries to be automatically gathered together into the array for
automatic parsing.

Signed-off-by: Jonathan Creekmore <jonathan.creekmore@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/xen.lds.S
xen/arch/x86/xen.lds.S

index 0488f3706e12d8ccf9a017d31a6f295a304d4d03..f501a2fd013f75609f63d37a90bedfa12be0fb01 100644 (file)
@@ -57,6 +57,10 @@ SECTIONS
        . = ALIGN(PAGE_SIZE);
        *(.data.page_aligned)
        *(.data)
+       . = ALIGN(8);
+       __start_schedulers_array = .;
+       *(.data.schedulers)
+       __end_schedulers_array = .;
        *(.data.rel)
        *(.data.rel.*)
        CONSTRUCTORS
index e18e08fc5a1f4ea755d9323449716ea28a283727..c1ce027af0ebeb83d6ae2e840ffaae7787f8cced 100644 (file)
@@ -80,6 +80,10 @@ SECTIONS
        __stop___pre_ex_table = .;
 
        *(.data.read_mostly)
+       . = ALIGN(8);
+       __start_schedulers_array = .;
+       *(.data.schedulers)
+       __end_schedulers_array = .;
        *(.data.rel.ro)
        *(.data.rel.ro.*)
   } :text