diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 16:15:10 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 16:15:10 -0800 |
commit | 176a955c63f7891f00c1f29e33079dc3d77539da (patch) | |
tree | e539c910c8eadfc664a26caa464b53d31d86a264 /test/dot_s/function-data-sections.s | |
parent | 9053bd501b9e69c044410900fdeac25bd38b078e (diff) | |
parent | 3cfb90c2acac907dfbf9db7ad0940a06183dcda4 (diff) | |
download | binaryen-176a955c63f7891f00c1f29e33079dc3d77539da.tar.gz binaryen-176a955c63f7891f00c1f29e33079dc3d77539da.tar.bz2 binaryen-176a955c63f7891f00c1f29e33079dc3d77539da.zip |
Merge branch 'sections-visibilties'
Diffstat (limited to 'test/dot_s/function-data-sections.s')
-rw-r--r-- | test/dot_s/function-data-sections.s | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/dot_s/function-data-sections.s b/test/dot_s/function-data-sections.s new file mode 100644 index 000000000..68942b1af --- /dev/null +++ b/test/dot_s/function-data-sections.s @@ -0,0 +1,53 @@ + .text + .section .text.foo,"ax",@progbits + .globl foo + .type foo,@function +foo: + return +func_end0: + .size foo, func_end0-foo + + .section .text.bar,"ax",@progbits + .globl bar + .type bar,@function +bar: + .param i32 + .result i32 + return $0 +func_end1: + .size bar, func_end1-bar + + .section .text.qux,"ax",@progbits + .globl qux + .type qux,@function +qux: + .param f64, f64 + .result f64 + f64.add $push0=, $0, $1 + return $pop0 +func_end2: + .size qux, func_end2-qux + + .type aaa,@object + .section .bss.aaa,"aw",@nobits + .globl aaa + .align 2 +aaa: + .int32 0 + .size aaa, 4 + + .type bbb,@object + .section .data.bbb,"aw",@progbits + .globl bbb + .align 2 +bbb: + .int32 1 + .size bbb, 4 + + .type ccc,@object + .section .data.ccc,"aw",@progbits + .globl ccc + .align 2 +ccc: + .int32 1075000115 + .size ccc, 4 |