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

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


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 9 Feb 2018 18:09:35 +0200
  • Cc: simon.kuenzer@xxxxxxxxx
  • Delivery-date: Mon, 12 Feb 2018 10:57:12 +0000
  • Ironport-phdr: 9a23:GIBK/RbpW2f8eoM/mMUSzQn/LSx+4OfEezUN459isYplN5qZr8i+bnLW6fgltlLVR4KTs6sC17KP9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCagbb9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA57m/Zl8J+gqFcrh+6uxBz35TZbJ2POfZiYq/Qe84RS2pbXsZWUixMGp2xb4wUD+odPOZYqZT2qV0TrRumGAmnGeTixSNPhn/twa060uIhHRvC3Aw9B9IOrW/Zo8nuNKsISeC10bLHwS/Zb/NRwDrw7pXDfB4mofGJR71wcMzRxFExFwzflFWQr5bqPzaL2egXrmeU9fZgWviphmU6qA9xuiCiytojh4XUnI4YyVDJ+T9nzIorJ9C0UkB2bca5HJZfqi2WLYh7T8M4T212tis3xKcKtYO0cSQUzpks2gTRZOadc4eS5xLuTOORITBli317YL+/nBOy8VS4yu37S8m0zE5GripbndnIsXAAzwLT6s2dRft8+ketwyqA1xvJ5uFcPEA7jrDXK4QmwrIol5oTt1rMHjPulUnrg6Kaa18o9+uo5uj9fLnquJ2RO5V6hw3mN6QhgM2/AeA2MggUWGib/Pyx26Hk/U3iXLVKj/s2nrPdsJDHPcQbu7W0DBNO0oo58xa/Eiyp3M4CnXkANF5FYg6Ij5D1O1HSJ/D1FfK/g1WqkDdqwPDGJaTtDYjTIXjdjrjhea1w60pdyAoo0dBf/IhYC74fL/L1QEPxs8bYDhAhOQyu3+nnEMl91p8ZWW+XGa+ZMabSsViO5u41IOmMeZEauDD8Kvc7/f7jlnk5lkEBcqmtx5QYc2q0Eep7IxbRXX25h9YHEGAR+wYzUuHuoFmDSiJIIWa/WeQ7/D5oJpihCNLoQZuxgbrJ+DqjA9UCbWddFlGKV3P1b5isUOxKcD+YZNVmxG9XHYO9QpMsgEn9/DTxzKBqe7LZ
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

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)
     }
 
-- 
2.1.4


_______________________________________________
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®.