Code Monkey home page Code Monkey logo

Comments (6)

galak avatar galak commented on May 28, 2024

Is this really an issue since we are using gcc-8.3?

from sdk-ng.

lpereira avatar lpereira commented on May 28, 2024

-mindirect-branch=thunk has to be enabled (conditionally, of course) to mitigate against this issue in affected machines. I don't know if that's the case.

from sdk-ng.

galak avatar galak commented on May 28, 2024

-mindirect-branch=thunk has to be enabled (conditionally, of course) to mitigate against this issue in affected machines. I don't know if that's the case.

My point or question, was is this feature something that needs to be explicitly enabled in the GCC build or something we just get for free now that the SDK is using a gcc-8.3 code base?

from sdk-ng.

lpereira avatar lpereira commented on May 28, 2024

AFAICT, it's always available for the targets that may require it. I don't have the SDK here to test, but it might be a good idea to see if the compiler whines or not. If it doesn't whine, then this ticket can be closed (and another one opened on the kernel repo to track it).

from sdk-ng.

pabigot avatar pabigot commented on May 28, 2024

Looks like it's enabled for Intel architectures; that and s390 are the only GNUC targets that seem to support it.

lilith[301]$ /usr/local/zephyr-sdk-0.10.1/i586-zephyr-elf/bin/i586-zephyr-elf-gcc -mindirect-branch=thunk -c /tmp/x.c
lilith[302]$ /usr/local/zephyr-sdk-0.10.1/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-gcc -mindirect-branch=thunk -c /tmp/x.c
lilith[303]$ /usr/local/zephyr-sdk-0.10.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -mindirect-branch=thunk -c /tmp/x.c
arm-zephyr-eabi-gcc: error: unrecognized command line option '-mindirect-branch=thunk'; did you mean '-findirect-inlining'?

from sdk-ng.

stephanosio avatar stephanosio commented on May 28, 2024

Closing this issue since we support GCC 8.3.0 now and the problem is resolved as far as the SDK is concerned (it is up to the user/Zephyr to enable this option).

from sdk-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.