Program segfaults when compiled with dune 1.11

Hello

my program runs fine when compiled with OCamlMakefile, or with dune 1.10.
However, after building with dune 1.11, it segfaults:

$ dune exec examples/embed/embed.exe
examples/embed/embed.exe: Symbol `sin' causes overflow in R_X86_64_PC32 relocation
Erreur de segmentation

I can provide more info, but I’m not quite sure what.

My guess is that this is related to a change in 1.11 that makes modules that go in executables to be compiled with -nodynlink. See https://github.com/ocaml/dune/issues/2527