# M3: a `-T` script with INSERT AFTER augments the default layout rather than
# replacing it, and a linker script named like an input file (an implicit
# script) adds a symbol assignment.
= "INSERT AFTER into the default layout, and an implicit script"
= ["as -o start.o start.s"]
= "-static -T plugins.ld -o out start.o answer.ld"
= "./out"
= 42
= [
" .data .plugins .bss ",
"000000000000000c 0 NOTYPE GLOBAL DEFAULT ABS answer",
# The section index varies between binutils versions; the symbol must exist
# and be global.
"GLOBAL DEFAULT",
"__plugins_start",
".plugins PROGBITS",
]
= ["x86_64-linux-gnu"]
= true
# qld adds a linker `.comment` when no input has one (as lld does).
= [".comment"]