diff --git a/demos/asm/test.S b/demos/asm/test.S index 827dc824..af26f0a0 100644 --- a/demos/asm/test.S +++ b/demos/asm/test.S @@ -1,16 +1,16 @@ #include "header.h" -.text -.align 2 - -.section .data +.data val: .long SOME_VALUE +.text +.align 2 + // Multiply input value by 421... .global mult10 -.type mult10, function +.type mult10, @function mult10: pushq %rbp movq %rsp,%rbp @@ -20,4 +20,3 @@ mult10: popq %rbp ret - diff --git a/demos/asm/wscript b/demos/asm/wscript index b17b57db..1d210aa0 100644 --- a/demos/asm/wscript +++ b/demos/asm/wscript @@ -19,10 +19,10 @@ def build(bld): target = 'asmtest', defines = 'foo=12', asflags = '-Os', - includes = '.') + includes = '.', + linkflags = '-no-pie') def disp(ctx): node = ctx.bldnode.ant_glob('asmtest*', remove=False)[0] ctx.exec_command('%s' % node.abspath(), shell=False) bld.add_post_fun(disp) -