[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH v3 1/4] 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: Thu, 29 Aug 2019 16:19:37 +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=cUxcuNgdZeq15Nk97uXSr5Hkut3qKRM1pfWdmF4s45Y=; b=GSUZRdgmdxSNvU3ClpQT/hiuG0C9mvWLD7xl9S/fmdn7TNI3jVF4R17qj56mTC9LYlbd4ioN2cWDbrWZs8S94MkwtlYo9jD49unkze6hLOKxbSueSPv1xx8xZgWPPXoWYW+oPfnDAgiBArw2nWO3aHM519QUlP7b3pND9JItbkR5cv+iXEQcPYc10/bYoe/8zI8Vdn6lWEN/WdcpRQ0EKAg5AkgYz8SE4AWDYmYcsswZ3DogRzexh9GpwfZa0Sp/u8Q4mIh5hEgZO/QIxPGukBkfQ3P6XLxxBvJLO72EFvFuONq5FHnXFybZfgdfzL+zBQRazILZuwLnm/qjr7m2bw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OwDJemH2RhzKmLZ2UtTL/l3AYWKt+UupSXc3ye0kvuvJP9uqZGnfyZ1Ce2ctpaE4maUZGhOBEcfYYOfXhF2HwsEr6sFC6ICEyRD2wUgS+eiJkyghfuBnnJsuiC3ZaqTULr7hgaoTZFu2yOa+lPtDpRcnFS0ucBuWupcuEfGattjgN34hrgmqwrRrdhr8lnI8cB0L3CfCcEir/VkilFvgHnu3alaIJPfuNNEjeiSpavGmjyExCjv1aCFBnxH9IGlXmRKYiB4HlD55c2K0QWAbrjf7E7x38Jqhs3WGm1QgIdQe5mB8+fKucV3BJDTA0L0+ONDyNS9ed7NEle5bnT8nHg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Delivery-date: Thu, 29 Aug 2019 16:19:47 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVXoWNFBrec+0wC0KTpTP4KEyIlA==
- Thread-topic: [UNIKRAFT PATCH v3 1/4] plat/common: Add uk_ctortab_end in the linker script
From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
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>
Reviewed-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
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
|