What happens if I dont provide any information in my likner script for some section? Where it would be located? For example if I have following linker script
SECTIONS {
.text = { *(.text) }
}
And in my .S
file I have some another section .section .mysection
. What would heppen with mysection
section in the resulting .o
file?
Would it even be loaded to the memory (protected mode)?
Also interesting what would heppen with .data
and .bss
sections.
UPD
Consider .mysection
doesn't contain any information. It just looks like this.
.section .mysection
stack_bottom:
.skip 16384
stack_top
But it's still interesting if it contains something.