From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:44
|
Commit-ID: 7af13e04663c53d946889c619f33201f960b69fd Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=7af13e04663c53d946889c619f33201f960b69fd Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 11 Nov 2018 16:11:57 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:46 +0300 test: nasm-t -- Add multisection Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/multisection-elf32.o.t | Bin 0 -> 1680 bytes travis/test/multisection-elf32.stderr | 1 + travis/test/multisection-elf64.o.t | Bin 0 -> 2320 bytes travis/test/multisection-elf64.stderr | 1 + {test => travis/test}/multisection.asm | 4 ++-- travis/test/multisection.bin.t | Bin 0 -> 205 bytes travis/test/multisection.json | 31 +++++++++++++++++++++++++++++++ travis/test/multisection.stderr | 1 + 8 files changed, 36 insertions(+), 2 deletions(-) diff --git a/travis/test/multisection-elf32.o.t b/travis/test/multisection-elf32.o.t new file mode 100644 index 0000000..0568615 Binary files /dev/null and b/travis/test/multisection-elf32.o.t differ diff --git a/travis/test/multisection-elf32.stderr b/travis/test/multisection-elf32.stderr new file mode 100644 index 0000000..8a6df4b --- /dev/null +++ b/travis/test/multisection-elf32.stderr @@ -0,0 +1 @@ +./travis/test/multisection.asm:84: warning: uninitialized space declared in non-BSS section `.hmm': zeroing \ No newline at end of file diff --git a/travis/test/multisection-elf64.o.t b/travis/test/multisection-elf64.o.t new file mode 100644 index 0000000..64f250a Binary files /dev/null and b/travis/test/multisection-elf64.o.t differ diff --git a/travis/test/multisection-elf64.stderr b/travis/test/multisection-elf64.stderr new file mode 100644 index 0000000..8a6df4b --- /dev/null +++ b/travis/test/multisection-elf64.stderr @@ -0,0 +1 @@ +./travis/test/multisection.asm:84: warning: uninitialized space declared in non-BSS section `.hmm': zeroing \ No newline at end of file diff --git a/test/multisection.asm b/travis/test/multisection.asm similarity index 98% copy from test/multisection.asm copy to travis/test/multisection.asm index 34e7f7d..08b7319 100644 --- a/test/multisection.asm +++ b/travis/test/multisection.asm @@ -32,7 +32,7 @@ section .stringdata mystr1: db "Hello, this is string 1", 13, 10, '$' section .extra_code -org 0x200 +;org 0x200 bits 16 more: mov si, asciz1 @@ -56,7 +56,7 @@ section .appspecific asciz1: db "This is string 2", 0 section .code -org 0x100 +;org 0x100 bits 16 start: diff --git a/travis/test/multisection.bin.t b/travis/test/multisection.bin.t new file mode 100644 index 0000000..47933b3 Binary files /dev/null and b/travis/test/multisection.bin.t differ diff --git a/travis/test/multisection.json b/travis/test/multisection.json new file mode 100644 index 0000000..61a0449 --- /dev/null +++ b/travis/test/multisection.json @@ -0,0 +1,31 @@ +[ + { + "description": "Test mutlisecions (bin)", + "id": "multisection", + "format": "bin", + "source": "multisection.asm", + "option": "-Ox", + "target": [ + { "output": "multisection.bin" }, + { "stderr": "multisection.stderr" } + ] + }, + { + "description": "Test mutlisecions (elf32)", + "ref": "multisection", + "format": "elf32", + "target": [ + { "output": "multisection-elf32.o" }, + { "stderr": "multisection-elf32.stderr" } + ] + }, + { + "description": "Test mutlisecions (elf64)", + "ref": "multisection", + "format": "elf64", + "target": [ + { "output": "multisection-elf64.o" }, + { "stderr": "multisection-elf64.stderr" } + ] + } +] diff --git a/travis/test/multisection.stderr b/travis/test/multisection.stderr new file mode 100644 index 0000000..5629020 --- /dev/null +++ b/travis/test/multisection.stderr @@ -0,0 +1 @@ +./travis/test/multisection.asm:84: warning: uninitialized space declared in .hmm section: zeroing \ No newline at end of file |