trying with bfd

Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
Pratik Mankawde
2025-11-13 16:31:41 +00:00
parent 4248a1fbb6
commit 8d6d2ec455

View File

@@ -177,10 +177,10 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
# Hence disable it. # Hence disable it.
cxx_flags += " -fno-var-tracking-assignments" cxx_flags += " -fno-var-tracking-assignments"
# Disable mold linker - it's too strict about relocations with GCC runtime libs # Disable mold linker - it's too strict about relocations with GCC runtime libs
# Use gold or default linker instead # Use default linker (bfd/ld) which is more lenient with mixed code models
#cmake_args += ' -Duse_mold=OFF' cmake_args += ' -Duse_mold=OFF'
#exe_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan' exe_linker_flags += ' -fuse-ld=bfd'#-static-libubsan -static-libasan -static-libtsan'
#shared_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan' shared_linker_flags += ' -fuse-ld=bfd'#-static-libubsan -static-libasan -static-libtsan'
if architecture['platform'] == 'linux/amd64' and os['compiler_name'] == 'gcc': if architecture['platform'] == 'linux/amd64' and os['compiler_name'] == 'gcc':
# Add -mcmodel=large and -fPIC to both compiler AND linker flags # Add -mcmodel=large and -fPIC to both compiler AND linker flags