Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim: add optee build support #43

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

extinguish
Copy link
Contributor

  1. add .scattered_array section inside .text section
  2. the ".scattered_array" section is required by optee_os, optee_os will uniformly place all the functions that need to be called during the system startup phase into the .scattered_array section. In order to enable optee_os to start up normally, we need to add this section to the linker script explicitly, otherwise the function that put into .scattered_array section will be optimized out during link procedure.

@CLAassistant
Copy link

CLAassistant commented Dec 24, 2024

CLA assistant check
All committers have signed the CLA.

@extinguish extinguish closed this Dec 25, 2024
@extinguish extinguish reopened this Dec 25, 2024
the ".scattered_array" section is required by optee_os,
optee_os will uniformly place all the functions that need to
be called during the system startup phase into the
`.scattered_array` section.
In order to enable optee_os to start up normally, we need to
addd this section to the linker script explicitly, otherwise the
function that put into `.scattered_array` section will be optimized
out during link procedure.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
the ".scattered_array" section is required by optee_os,
optee_os will uniformly place all the functions that need to
be called during the system startup phase into the
`.scattered_array` section.
In order to enable optee_os to start up normally, we need to
addd this section to the linker script explicitly, otherwise the
function that put into `.scattered_array` section will be optimized
out during link procedure.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit da6cd09 into open-vela:dev Dec 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants