linker: add --optimistic-linking flag
This patch adds: - the --optimistic-linking flag which binds unknown symbols in the runtime linker to 0xDEADBEEF instead of exiting with failure - The test T25240 which tests these flags using dead code in the FFI system. - closes #25240 This patch is part of the upstreaming haskell.nix patches project.
Showing
- docs/users_guide/9.12.1-notes.rst 236 additions, 0 deletionsdocs/users_guide/9.12.1-notes.rst
- docs/users_guide/runtime_control.rst 5 additions, 0 deletionsdocs/users_guide/runtime_control.rst
- libraries/ghc-internal/src/GHC/Internal/RTS/Flags.hsc 3 additions, 0 deletionslibraries/ghc-internal/src/GHC/Internal/RTS/Flags.hsc
- rts/Linker.c 14 additions, 4 deletionsrts/Linker.c
- rts/RtsFlags.c 6 additions, 0 deletionsrts/RtsFlags.c
- rts/include/rts/Flags.h 1 addition, 0 deletionsrts/include/rts/Flags.h
- rts/linker/elf_got.c 15 additions, 2 deletionsrts/linker/elf_got.c
- testsuite/tests/ghci/linking/T25240/Makefile 7 additions, 0 deletionstestsuite/tests/ghci/linking/T25240/Makefile
- testsuite/tests/ghci/linking/T25240/T25240.hs 17 additions, 0 deletionstestsuite/tests/ghci/linking/T25240/T25240.hs
- testsuite/tests/ghci/linking/T25240/T25240.stderr 2 additions, 0 deletionstestsuite/tests/ghci/linking/T25240/T25240.stderr
- testsuite/tests/ghci/linking/T25240/T25240a.hs 13 additions, 0 deletionstestsuite/tests/ghci/linking/T25240/T25240a.hs
- testsuite/tests/ghci/linking/T25240/all.T 3 additions, 0 deletionstestsuite/tests/ghci/linking/T25240/all.T
- testsuite/tests/ghci/should_run/T18064.stderr 1 addition, 1 deletiontestsuite/tests/ghci/should_run/T18064.stderr
- testsuite/tests/interface-stability/base-exports.stdout 1 addition, 1 deletiontestsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs 1 addition, 1 deletion...ce-stability/base-exports.stdout-javascript-unknown-ghcjs
- testsuite/tests/interface-stability/base-exports.stdout-mingw32 1 addition, 1 deletion...ite/tests/interface-stability/base-exports.stdout-mingw32
- testsuite/tests/interface-stability/base-exports.stdout-ws-32 1 addition, 1 deletion...suite/tests/interface-stability/base-exports.stdout-ws-32
- testsuite/tests/rts/linker/T11223/T11223_link_order_a_b_2_fail.stderr 1 addition, 1 deletion...sts/rts/linker/T11223/T11223_link_order_a_b_2_fail.stderr
- testsuite/tests/rts/linker/T11223/T11223_link_order_a_b_2_fail.stderr-ws-32-mingw32 1 addition, 1 deletion.../T11223/T11223_link_order_a_b_2_fail.stderr-ws-32-mingw32
- testsuite/tests/rts/linker/T11223/T11223_link_order_a_b_2_fail.stderr-ws-64-mingw32 1 addition, 1 deletion.../T11223/T11223_link_order_a_b_2_fail.stderr-ws-64-mingw32
Loading
Please register or sign in to comment