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':