llvm-objdump can miss printing bytes at the end of a section.
This file:
.globl foo
.type foo, @object
foo:
.byte 't','h','i', 's',' ','i','s',' '
.byte 'a',' ','t','e','s','t'
.size foo, . - foo
Produces this output:
f.o: file format ELF64-x86-64
Disassembly of section .text:
0000000000000000 foo:
0: 74 68 69 73 20 69 73 20 this is 8: 61 20 74 65 73 74 a
It should be:
f.o: file format ELF64-x86-64
Disassembly of section .text:
0000000000000000 foo:
0: 74 68 69 73 20 69 73 20 this is 8: 61 20 74 65 73 74 a test
I would simplify to
.ascii "this is a test"