Skip to content

Commit

Permalink
Cover 2 command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin committed Jan 26, 2025
1 parent 688a0e6 commit bd41131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libwild/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ const IGNORED_FLAGS: &[&str] = &[
"disable-new-dtags",
"fix-cortex-a53-835769",
"fix-cortex-a53-843419",
"no-export-dynamic",
];

// These flags map to the default behavior of the linker.
Expand Down Expand Up @@ -434,6 +435,8 @@ pub(crate) fn parse<S: AsRef<str>, I: Iterator<Item = S>>(mut input: I) -> Resul
args.merge_strings = false;
} else if long_arg_eq("pie") {
args.relocation_model = RelocationModel::Relocatable;
} else if long_arg_eq("no-pie") {
args.relocation_model = RelocationModel::NonRelocatable;
} else if long_arg_eq("eh-frame-hdr") {
args.should_write_eh_frame_hdr = true;
} else if long_arg_eq("shared") {
Expand Down

0 comments on commit bd41131

Please sign in to comment.