From: Wei Liu Date: Thu, 1 Sep 2016 12:06:57 +0000 (+0100) Subject: gcov: collect more sections to constructor list X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~450 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=afb118e719675062c3365265e28c403f5e1a3440;p=xen.git gcov: collect more sections to constructor list The version of gcc (4.9.2) I use put constructors into .init_array* section(s). Collect those sections into constructor list as well. Modify both arm and x86 scripts to keep them in sync. Signed-off-by: Wei Liu Acked-by: Julien Grall Acked-by: Jan Beulich --- diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index b24e93b574..3c5e7ba827 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -166,7 +166,9 @@ SECTIONS . = ALIGN(8); __ctors_start = .; + *(.ctors) *(.init_array) + *(SORT(.init_array.*)) __ctors_end = .; } :text __init_end_efi = .; diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 67cfda1ddd..d903c31d9d 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -205,6 +205,8 @@ SECTIONS . = ALIGN(8); __ctors_start = .; *(.ctors) + *(.init_array) + *(SORT(.init_array.*)) __ctors_end = .; } :text