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

[Minios-devel] [UNIKRAFT PATCH v2 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:06:55 +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=bt7V1D7UGWsaMIqNdIt6rOq35tfqw3XlCiR/mb4ZpFoEj6hdvhvoJ/zC0LkKXWCvLPOL0iiiqxwFwQwsXbxrT7THtpByqw4L/7D/cf8Kpk0q2f6PFBqYnMBzKOPpT4c7ZucOgjzK3pVW2vgCJCGOKb9JOoMiVSNW72Qd1SAHr9l+MmGBX+jD41io8Y6J52FiX/1lOjpot05sxs85xF22mxWz3+MvlUdXgwD6VQc36fTOyFV9i3/xKWSsZPdK+uqxP8sPZbixijKUmMQUg4oN0tB2oS2USydC7xCPT0Fx6EejqB+gS3R3fJkp8kBkiPiJCKgVxqjXXiyU5losdbJQow==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QnTqREtJR1OqKPDDYcxmOLFLC4z+4Nl9GyXaMG4FkRU52uJ5uakT/noAr+q77jj/AxWrxzfxmFdBCPb8MgLogXXRm5Y0RMbfEDqEsv6W12mjslouxFZtiHrQajrSz7LPCDGAIw0mEzJpJO6xgleUh4FgZ2tl6jRs9eFGDqf8/QGZwSqHpqutFPRc6eL4o2H7ev82rJKjRALQFHwOAALfnmId4FGRZVmLGkQmux0uw1XyaxrxLeNL19RuBITGNVETpD1lyRp6K6C3Sj88sA9BJzBpKZWG4bo1PWbijytKwoKXoPT7uwLD/ArKixwre5c+Oy1A6Atvl2R0iTSij98ifA==
  • 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:07:05 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVXoPHsCLfx/5E2Eeyuxqm0LIDlw==
  • Thread-topic: [UNIKRAFT PATCH v2 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

 


Rackspace

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