Skip to content

Conversation

@arnej27959
Copy link
Contributor

Description

Add back the linker option to make stack non-executable, which was accidentally lost here:
#22646

This just adds back the option in the same place where it was.

Motivation and Context

After upgrading to 1.22.0 we saw this warning:

OpenJDK 64-Bit Server VM warning: You have loaded library /opt/vespa-deps/lib64/libonnxruntime.so.1.22.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.

@Craigacp
Copy link
Contributor

Ah, I'd wondered why that warning had reappeared but didn't have time to run it down yet.

@snnn
Copy link
Contributor

snnn commented Jun 29, 2025

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@snnn snnn merged commit a17e346 into microsoft:main Jun 30, 2025
84 checks passed
@arnej27959 arnej27959 deleted the arnej/linker-flag-noexecstack branch July 1, 2025 05:11
daijh pushed a commit to daijh/onnxruntime that referenced this pull request Jul 10, 2025
…crosoft#25200)

### Description
<!-- Describe your changes. -->
Add back the linker option to make stack non-executable, which was
accidentally lost here:
microsoft#22646

This just adds back the option in the same place where it was.

### Motivation and Context
After upgrading to 1.22.0 we saw this warning:

OpenJDK 64-Bit Server VM warning: You have loaded library
/opt/vespa-deps/lib64/libonnxruntime.so.1.22.0 which might have disabled
stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c
<libfile>', or link it with '-z noexecstack'.
@egortech egortech mentioned this pull request Sep 23, 2025
Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Oct 10, 2025
Failing Hydra build: https://hydra.nixos.org/build/308650242

The libraries require an execstack even though it's not necessary. This
got fixed upstream already[1], but this doesn't apply cleanly on the
version we have.

[1] microsoft/onnxruntime#25200
quic-ankus pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Nov 25, 2025
…crosoft#25200)

### Description
<!-- Describe your changes. -->
Add back the linker option to make stack non-executable, which was
accidentally lost here:
microsoft#22646

This just adds back the option in the same place where it was.

### Motivation and Context
After upgrading to 1.22.0 we saw this warning:

OpenJDK 64-Bit Server VM warning: You have loaded library
/opt/vespa-deps/lib64/libonnxruntime.so.1.22.0 which might have disabled
stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c
<libfile>', or link it with '-z noexecstack'.
Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Dec 30, 2025
Failing Hydra build: https://hydra.nixos.org/build/308650242

The libraries require an execstack even though it's not necessary. This
got fixed upstream already[1], but this doesn't apply cleanly on the
version we have.

[1] microsoft/onnxruntime#25200
Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Jan 3, 2026
Failing Hydra build: https://hydra.nixos.org/build/308650242

The libraries require an execstack even though it's not necessary. This
got fixed upstream already[1], but this doesn't apply cleanly on the
version we have.

[1] microsoft/onnxruntime#25200
Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Jan 3, 2026
Failing Hydra build: https://hydra.nixos.org/build/308650242

The libraries require an execstack even though it's not necessary. This
got fixed upstream already[1], but this doesn't apply cleanly on the
version we have.

[1] microsoft/onnxruntime#25200
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.

3 participants