[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH] plat/kvm/x86: Prevent removing of variables put into .bss.* sections



Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>

On 09.02.2018 17:09, Costin Lupu wrote:
When using -fdata-sections option of gcc, global and static variables
are placed into .bss.varname, .data.varname or .rodata.varname and they
should also be grouped into their main corresponding section (.bss,
.data, .rodata respectively).

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
  plat/kvm/x86/link64.ld | 1 +
  1 file changed, 1 insertion(+)

diff --git a/plat/kvm/x86/link64.ld b/plat/kvm/x86/link64.ld
index e84a735..85ea058 100644
--- a/plat/kvm/x86/link64.ld
+++ b/plat/kvm/x86/link64.ld
@@ -76,6 +76,7 @@ SECTIONS {
      .bss :
      {
          *(.bss)
+        *(.bss.*)
          *(COMMON)
      }

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.