Skip to content

Added missing stack protection offsets.#1417

Open
furkanyilmazgtb wants to merge 3 commits into
FreeRTOS:mainfrom
furkanyilmazgtb:fix/1416-microblaze-stack-protection-undefined-offsets
Open

Added missing stack protection offsets.#1417
furkanyilmazgtb wants to merge 3 commits into
FreeRTOS:mainfrom
furkanyilmazgtb:fix/1416-microblaze-stack-protection-undefined-offsets

Conversation

@furkanyilmazgtb
Copy link
Copy Markdown

Fix: Define missing stack protection symbols for MicroBlaze

Description

Added missing 'portSLR_OFFSET' and 'portSHR_OFFSET' definitions to 'portasm.S' for the MicroBlaze port. These symbols were being referenced but were not defined, causing compilation errors when stack protection is enabled in FreeRTOS Kernel v11.3.0.

Test Steps

Set up a MicroBlaze project using Xilinx Vivado/Vitis.

Upgrade the FreeRTOS Kernel to v11.3.0.

Enable stack protection.

Attempt to compile the project. (Observe the 'undefined symbol' error before the fix).

Apply this fix and verify that the project compiles successfully and stack protection functions as expected.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

Fixes #1416

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sonarqubecloud
Copy link
Copy Markdown

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.

[BUG] Undefined stack protection symbols in MicroBlaze portasm.S

2 participants