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

LLEXT: automatic gcc / xt-clang switching #9151

Merged
merged 3 commits into from
Jun 4, 2024
Merged

Commits on May 28, 2024

  1. llext: automatically select LLEXT type

    When using a clang Cadence toolchain to build SOF and LLEXT modules
    we need to select a different LLEXT type than when using a Zephyr gcc
    toolchain.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh committed May 28, 2024
    Configuration menu
    Copy the full SHA
    8166846 View commit details
    Browse the repository at this point in the history
  2. llext: remove hard-coded section names

    It was clear that hard-coded section names aren't reliable enough but
    they broke down way earlier than has been expected.
    
    This patch replaces hard-coded sections with a loop, scanning all
    sections and selecting them based on their flags and types.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh committed May 28, 2024
    Configuration menu
    Copy the full SHA
    486c9b9 View commit details
    Browse the repository at this point in the history
  3. llext: check a Kconfig option to select ld flags

    When using xt-clang we cannot build shared objects, so we use '-r' to
    link relocatable objects. But the decision shouldn't be made based on
    the name of the compiler, but based on the selected LLEXT_BINARY_TYPE
    option.
    
    Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
    lyakh committed May 28, 2024
    Configuration menu
    Copy the full SHA
    002d353 View commit details
    Browse the repository at this point in the history