From 569a3c96f529c67741902987c3c57dad59ee388f Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Thu, 9 Mar 2023 12:02:30 +0330 Subject: [PATCH] nld: list options with -h --- nld.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nld.c b/nld.c index 4d5a0cb..dce5ac5 100644 --- a/nld.c +++ b/nld.c @@ -836,7 +836,15 @@ int main(int argc, char **argv) continue; } if (argv[i][1] == 'h') { - printf("Usage: neatld [options] objects\n"); + printf("Usage: neatld [options] objects\n\n"); + printf("Options:\n"); + printf(" -o out set the output file\n"); + printf(" -l lib link with library lib\n"); + printf(" -L dir search dir for libraries\n"); + printf(" -s do not include a symbol table\n"); + printf(" -mXvaddr:laddr section virtual/load address\n"); + printf(" -p page-align sections\n"); + printf(" -e entry point symbol\n"); return 1; } } -- 2.11.4.GIT