GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
libgcc/vxworks/powerpc

VxWorks on PowerPC gains unwind context support for linker stubs.

VxWorks PowerPC now supports unwinding through linker stubs using a new context update mechanism.

To enable proper stack unwinding through linker stubs on VxWorks for PowerPC architectures, a new mechanism, MD_FROB_UPDATE_CONTEXT, has been implemented. This functionality is similar to existing implementations for other operating systems and ensures that the unwinder can correctly traverse call stacks involving these stubs.

In Details

This patch introduces MD_FROB_UPDATE_CONTEXT to libgcc/config/rs6000/vxworks-unwind.h for powerpc*-vxworks targets. This is necessary for unwinding through linker stubs, a common requirement in embedded environments like VxWorks. The implementation closely mirrors the Linux versions, ensuring consistent behavior for stack unwinding across different operating systems on the PowerPC architecture.

For Context
Stack unwinding
The process of traversing the call stack during exception handling or debugging to determine the sequence of function calls that led to the current execution point.
Linker stubs
Small pieces of code generated by the linker, often used to resolve indirect function calls or handle dynamic linking scenarios.
MD_FROB_UPDATE_CONTEXT
A machine-dependent macro in libgcc used to modify the unwinding context, enabling the stack unwinder to correctly interpret stack frames, especially in complex scenarios like those involving linker stubs.
PowerPC
A family of RISC microprocessors developed by Apple, IBM, and Motorola. Used in various systems, including embedded devices.
VxWorks
A real-time operating system (RTOS) widely used in embedded systems.
Filed Under: libgccvxworkspowerpcunwindingembedded