Describe the bug
使能asan构建时,报错,信息如下
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: relocation refers to a discarded section: .note.GNU-stack
defined in bazel-out/aarch64-fastbuild/bin/external/brpc~/_objs/bthread/context.pic.o
referenced by context.cpp
bazel-out/aarch64-fastbuild/bin/external/brpc~/_objs/bthread/context.pic.o:(.init_array.00099+0x0)
collect2: error: ld returned 1 exit status
Steps To Reproduce
bazel build --config asan //...
Expected behavior
无错
Version
v0.6.0.dev260105
Operating system
devtools aarch64 ubuntu jammy
Hardware Resources
8c 32g
Describe the bug
使能asan构建时,报错,信息如下
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: relocation refers to a discarded section: .note.GNU-stack
Steps To Reproduce
bazel build --config asan //...
Expected behavior
无错
Version
v0.6.0.dev260105
Operating system
devtools aarch64 ubuntu jammy
Hardware Resources
8c 32g