Update playground/ldscript

This commit is contained in:
Waf Project 2024-03-28 16:46:48 +01:00
parent aef2c6ef23
commit 39413bedfd
2 changed files with 10 additions and 4 deletions

View File

@ -1,2 +1,8 @@
ENTRY(init)
SECTIONS
{
. = 0x20000;
.text : { *(.text) }
. = 0x986754;
.data : { *(.data) }
.bss : { *(.bss) }
}

View File

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