Comments (6)
Is this really an issue since we are using gcc-8.3?
from sdk-ng.
-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.
-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.
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.
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.
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)
- arc binutils generates incorrect thread local storage (TLS) offsets HOT 11
- qemu-system-arc has bugs in delay-slot handling that are fixed upstream HOT 1
- Illegal load of EXC_RETURN into PC issue while using spi and ble in NRF52840DK HOT 1
- Thread awareness is not available on QEMU targets HOT 1
- runpath not set for libusb.so HOT 2
- arc soft float multiply error HOT 3
- Picolibc printf options in SDK 'integer only' variant?
- picolibc: Soft-float math functions access the FPU on SPARC HOT 3
- GitHub release info for 0.16.3 mentions wrong version of picolibc HOT 1
- Releases page does not have links to the full version HOT 1
- "Bus fault on vector table read" using SDK versions later than 0.16.0-beta1
- Upgrade to QEMU 8.1
- does SDK support riscv vector extension HOT 1
- maintainability: properly document the build process HOT 13
- Individual toolchain installation should be ignored for full_sdk HOT 1
- `setup.sh` cannot find applications on PATH HOT 2
- [GDB] Debugger seems to crash when stepping inside an IRQ handler HOT 4
- Broken links in Zephyr SDK 0.16.5-rc1release page HOT 1
- Update Zephyr SDK to be based upon GCC 14 HOT 7
- pokysdk provides an older Verison of GLIBC than required by system HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-ng.