From 39413bedfdd83d5c8905d9a937dc10b774fc496e Mon Sep 17 00:00:00 2001 From: Waf Project Date: Thu, 28 Mar 2024 16:46:48 +0100 Subject: [PATCH] Update playground/ldscript --- playground/ldscript/myscript.ld | 10 ++++++++-- playground/ldscript/wscript | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/playground/ldscript/myscript.ld b/playground/ldscript/myscript.ld index 73589cf7..e1d28eee 100644 --- a/playground/ldscript/myscript.ld +++ b/playground/ldscript/myscript.ld @@ -1,2 +1,8 @@ -ENTRY(init) - +SECTIONS +{ + . = 0x20000; + .text : { *(.text) } + . = 0x986754; + .data : { *(.data) } + .bss : { *(.bss) } +} diff --git a/playground/ldscript/wscript b/playground/ldscript/wscript index 1116134e..4221db2d 100644 --- a/playground/ldscript/wscript +++ b/playground/ldscript/wscript @@ -21,9 +21,9 @@ def build(bld): ) from waflib import Utils -from waflib.TaskGen import after, feature +from waflib.TaskGen import after_method, feature -@after('apply_link') +@after_method('propagate_uselib_vars') @feature('cprogram', 'cshlib') def process_ldscript(self): if not getattr(self, 'ldscript', None) or self.env.CC_NAME != 'gcc':