I have a working linker script. I want to add another data section whose contents is pulled directly from a file (ld shouldn\'t parse it and extract the sections and so on).
You can put raw file to separate section in assembly, and then include this section in linker script.
First you need to create template .S file, eg.
.section .rawdata
.incbin "blob1.raw"
... and modify linker script to include this section as you like it:
.data : {
*(.rawdata*)
}
You can also take a look here here for a bit more detailed information about .S template.