summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-06 22:53:44 -0500
committerpommicket <pommicket@gmail.com>2022-11-06 22:53:44 -0500
commit2c068ecc21a972aa00f2871a4405e31547bf765a (patch)
tree94442139f33b5c33482fae6007298e6526dc5dce /src/main.rs
parent000f57e11cf3272951cd3463f5d8bb82bc8e3903 (diff)
overflow checking
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index e25b837..2526716 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,11 +1,10 @@
/*
@TODO:
-- bounds check on bss
-- make bss optional
+- compile as well as link
- disable "warning: relocation XXX not in a data/text section" for .rel.eh_frame
- these warnings are being generated in two places. do they need to be?
-- make sure --no-stdlib generates a tiny executable
- make executables more tiny (overlap sections, etc.)
+- generate a warning/error on position-independent object files
- static libraries
*/
@@ -26,7 +25,7 @@ struct Args {
/// If set, the program will not be linked against libc.
///
/// This makes the executable smaller.
- #[arg(long = "no-std-lib", default_value_t = false)]
+ #[arg(long = "no-stdlib", default_value_t = false)]
no_std_lib: bool,
/// Output executable path.
#[arg(short = 'o', long = "output", default_value = "a.out")]