build: remove program headers from first loadable segment#586
build: remove program headers from first loadable segment#586
Conversation
f8853f9 to
0925371
Compare
0925371 to
388f411
Compare
|
please don't use semantic commit messages, this is not in our coding standard (they don't help creating changelog in case of superproject) |
Program headers should not be loaded into kernel as there is no use for them. Previously starting kernel at start of memory region required explicit linker script. JIRA: RTOS-910
388f411 to
682c77d
Compare
FIxed |
Thanks. |
Program headers should not be loaded into kernel as there is no use for them. Previously starting kernel at start of memory region required explicit linker script.
JIRA: RTOS-908
Description
On all platform but ARM, program headers are placed in loadable segment before _init section. Resulting from this _init section start address isn't start address of first loadable segment. Due to that in PLO we may not be able to find proper segment for kernel if an address of the section that the kernel is to be loaded to = VADDR_KERNEL_INIT. Because of this additional linker script was required for sparc in kernel.
On ARM we headers weren't loaded most probably because of a bug(or very fortunated accident) in our binutils patch.
THe change introduced new file armelf_phoenix.sh but did't use it (ld/configure.tgt), instead it used armelf by default which defines EMBEDDED to true resulting in headers not being included.
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment