Skip to content

Commit a90b2ee

Browse files
committed
adapt L4Bender implementation
- Fix style errors. - L4-bender does not yet support dynamic linking. - Stack unwinding is not yet supported for x86_64-unknown-l4re-uclibc. For now, just abort on panics. - Use GNU-style linker options where possible. As suggested by review: - Use standard GNU-style ld syntax for relro flags. - Use standard GNU-style optimization flags and logic. - Use standard GNU-style ld syntax for --subsystem. - Don't read environment variables in L4Bender linker. Thanks to CARGO_ENCODED_RUSTFLAGS introduced in #9601, l4-bender's arguments can now be passed from the L4Re build system without resorting to custom parsing of environment variables.
1 parent 1bf3f8a commit a90b2ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

panic_unwind/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ cfg_if::cfg_if! {
3939
} else if #[cfg(target_os = "hermit")] {
4040
#[path = "hermit.rs"]
4141
mod real_imp;
42+
} else if #[cfg(target_os = "l4re")] {
43+
// L4Re is unix family but does not yet support unwinding.
44+
#[path = "dummy.rs"]
45+
mod real_imp;
4246
} else if #[cfg(target_env = "msvc")] {
4347
#[path = "seh.rs"]
4448
mod real_imp;

0 commit comments

Comments
 (0)