Skip to content
Commit 5f07d47e authored by Fangrui Song's avatar Fangrui Song
Browse files

configure: Fix check for INSERT in linker script



GCC/Clang use local access when referencing a const variable,
so the conftest.so may have no dynamic relocation.
LLD reports `error: unable to insert .foo after .rela.dyn` when the
destination section does not exist.

Use a non-const int to ensure that .rela.dyn exists.

Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent 43cea6d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment