# M3: `--oformat binary` writes the load image as flat bytes, starting at the
# lowest load address: `AT>` places .data after .rodata, the fill pattern
# pads inside .text, zero bytes pad between sections, and NOBITS .bss is
# left out. The bytes are GNU ld's.
= "flat binary output from a ROM linker script"
= ["as -o image.o image.s"]
= "-T rom.ld --oformat binary -o out.bin image.o"
= "od -An -tx1 -v out.bin"
= """
b8 00 80 00 00 8b 00 c3 cc cc cc cc cc cc cc cc
72 61 77 21 00 80 00 00 1c 10 00 00 44 33 22 11
ef be 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee
"""
= ["x86_64-linux-gnu"]
= true
# The differential runner reads outputs with readelf; raw outputs are not ELF.
# `run` compares their bytes with GNU ld's instead.
= "raw (non-ELF) outputs"