[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH 1/3] plat/common: Add uk_ctortab_end in the linker script
- To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Tue, 27 Aug 2019 17:28:09 +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=6JleDuj02cTIZAiXjS/RmrIZTUaYv0Snaagh18DLId0=; b=kLeCGNih0AdCGLUiR7NUmRPl+fSC6X8wVRDZimPBEVFNhwzH9NW4JiQU/PNqyk+qz0Cvkud6m9GWCOQd2fdksWuBrAFGBsBSAZpsh71DGVdh4djqasG7pss9qRqCpxeHLF2B5HfepPuOk+o0o+FKnnrSrwhZgZ9BqkK1LSdd5XOISzXeMx4sw7c+97RSMIActaFRpKCp1c3W6ZIsXBr9c2WnlSglMwN+RZaGSUQniDA7LdnV1KdlCEpeCskFDhAYLszW+0FhtUXJVdgtlwdnmyWqbtjhHifzQa5ZDqwsN5R8kG+q4sv9VElkap/blXuntvpEtu+Lwbeq9Yvwa3Bf5A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EU8BgvlLIfyccNKnpXwM/tS4k+GuVNpRJt6e+ZuRC97ACJc1sybW/6b6mRdxr1gLt96tVpR/QJGBMCvIsgF/93naNcYqpcX3eQlY/VCefv7wUL1z0+NhJeW1c31JDt7Kec8ZQ/RCMRuS0xqIxFfjLoSKUMaTQK1gJZvhv/f4DgLIstXUsPvHSFvaBzglIfPoBRWErDw45N5uhcEOG6Iok+2ZBJgJcT8DRU7uG+3pkb7SmQBci/ZdwJMJKtOvf4HGNHURmeddFjMQwDhFQxYPJZAwb22P9SiEFhlcYi4cKV61J0CnbFM30YDWzW/RbhxEZLYlYAHOSNikN0e7DDd8gQ==
- 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:16 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVXPzLSPABwW1YIUanaESk+4lWDQ==
- Thread-topic: [UNIKRAFT PATCH 1/3] plat/common: Add uk_ctortab_end in the linker script
Currently we use LONG(0) in the linker script and a NULL chec to find the end of
the ctortab section. This approach does not work on different arhitectures
because LONG(0) has only 32 bits. To make the script arch independent, we add a
new variable uk_ctortab_end at the end of the ctortab section.
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
plat/common/include/common.lds.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plat/common/include/common.lds.h b/plat/common/include/common.lds.h
index 5ccaadb3..b06dd962 100644
--- a/plat/common/include/common.lds.h
+++ b/plat/common/include/common.lds.h
@@ -91,8 +91,8 @@
.uk_ctortab : \
{ \
KEEP(*(SORT_BY_NAME(.uk_ctortab[0-7]))) \
- LONG(0) \
- }
+ } \
+ uk_ctortab_end = .;
#define TLS_SECTIONS \
. = ALIGN(0x8); \
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|