forked from OP-TEE/optee_os
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: elf_load.c: do not require first segment to be PT_LOAD
There is no obvious reason for requiring the first program header in a user TA to be of type PT_LOAD. It is usually the case, due to the way our linker script is written (ta/arch/arm/ta.ld.S). Still, it may occur that other segments are inserted first by the linker. For example, when linking a 32-bit binary built with unwind tables (-funwind-tables), the first PHDR is PT_ARM_EXIDX. Such a TA won't load unless this patch is applied. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
- Loading branch information
1 parent
8f1e40b
commit 1191e65
Showing
1 changed file
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters