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

[Minios-devel] [UNIKRAFT PATCH 3/3] plat/*: Move ctortab before rodata on all platforms


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 27 Aug 2019 17:28:11 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m0OPtf95d+xcstQ6DL8pSY3t0eKnd2paip6XT8NZ/CQ=; b=ghNEjIJrWgS0HRNnQkaqw1o14u8odZkFS/z8wpKA++DV1e3qN+uqowiSeyqX2xfWeH+W8TawQwHuXRPcowxvmD4cUrlFVWyOLzck2y1e2//6ksxxO8jQNHVImogx9SmuXbnJJdp6ac3uZnfOfp/lBrCmAEQqNH2aPmvqqv/SusS5dsHelqldZ5ey2wIJZUzxcDoPxSS8dKo12L9RiuWzP4FJRsFhzijJalWSWdSUtHlUB7EhaCXfVIADpTXTGilzg2BOHZO9kdzHWf0c/Z49Bvb3cW4DAzN32u8gFk5M5z3O1ykAloQNrzvTPUCzGicgOIErSzrQyS2KE2oOPYy/Yw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QCPyhNWW3pLgAeR2UaZ+FcpZQH9pyrjQ+HezxQbLafaGpV4+4OWPBsvLsSiPvfsQ/xWzdldWIi4Ix3axis2YBSKwumzqg6Oz02ks6iTnDpkf/jPA+moS4jbF84cw/nE8kyqG77VTY+Lyia2+55sMu9/ZKJDrh4KcR5CxvhBkuSQxCwL16nWVMlahaAKg8jccHn7kxFB/ZjRAXIhvPovdWmWNws4FE83cfHNxpb5Fi8dQbKcNZ8hRNuYQNkFl/m8erA2jrwGkGjo97X5CfQE67zjf0szD+a62tcZdwhAXZlsrsarrFRydlV7wKN2NHyqVFW3kD5M7HeFwSD4nGmhkHQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "sharan.santhanam@xxxxxxxxx" <sharan.santhanam@xxxxxxxxx>
  • Delivery-date: Tue, 27 Aug 2019 17:28:26 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVXPzNTa3f0mKVuESMf+4c6TgRvg==
  • Thread-topic: [UNIKRAFT PATCH 3/3] plat/*: Move ctortab before rodata on all platforms

In order to be consistent in the linker scripts we move the ctortab section
before rodata section on all platforms.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 plat/kvm/arm/link64.lds.S    | 5 +++--
 plat/linuxu/arm/link.lds.S   | 2 +-
 plat/linuxu/x86/link64.lds.S | 2 +-
 plat/xen/arm/link32.lds.S    | 4 ++--
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/plat/kvm/arm/link64.lds.S b/plat/kvm/arm/link64.lds.S
index d08abe48..b07a8979 100644
--- a/plat/kvm/arm/link64.lds.S
+++ b/plat/kvm/arm/link64.lds.S
@@ -71,7 +71,10 @@ SECTIONS {
 
        EXCEPTION_SECTIONS
 
+       CTORTAB_SECTION
+
        /* Read-only data */
+       . = ALIGN(__PAGE_SIZE);
        _rodata = .;
        .rodata :
        {
@@ -82,8 +85,6 @@ SECTIONS {
 
        _erodata = .;
 
-       CTORTAB_SECTION
-
        /* Constructor tables (read-only) */
        . = ALIGN(0x8);
        _ctors = .;
diff --git a/plat/linuxu/arm/link.lds.S b/plat/linuxu/arm/link.lds.S
index 8a731c5c..5c9a4f3c 100644
--- a/plat/linuxu/arm/link.lds.S
+++ b/plat/linuxu/arm/link.lds.S
@@ -4,4 +4,4 @@ SECTIONS
 {
        CTORTAB_SECTION
 }
-INSERT AFTER .rodata
+INSERT BEFORE .rodata
diff --git a/plat/linuxu/x86/link64.lds.S b/plat/linuxu/x86/link64.lds.S
index b6f581ce..a6a56ad2 100644
--- a/plat/linuxu/x86/link64.lds.S
+++ b/plat/linuxu/x86/link64.lds.S
@@ -6,7 +6,7 @@ SECTIONS
 
        CTORTAB_SECTION
 }
-INSERT AFTER .rodata
+INSERT BEFORE .rodata
 
 SECTIONS
 {
diff --git a/plat/xen/arm/link32.lds.S b/plat/xen/arm/link32.lds.S
index cade70a1..3737d1cc 100644
--- a/plat/xen/arm/link32.lds.S
+++ b/plat/xen/arm/link32.lds.S
@@ -51,6 +51,8 @@ SECTIONS
 
        EXCEPTION_SECTIONS
 
+       CTORTAB_SECTION
+
        /* Read-only data */
        _rodata = .;
        .rodata :
@@ -61,8 +63,6 @@ SECTIONS
        . = ALIGN(__PAGE_SIZE);
        _erodata = .;
 
-       CTORTAB_SECTION
-
        . = ALIGN(0x8);
        _ctors = .;
        .preinit_array : {
-- 
2.20.1


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