From 8958e352dfdc764b69cbfd3cd7bab0d58885bb7f Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Mon, 27 Apr 2020 11:04:29 +0200 Subject: [PATCH] Update documentation for new `-x` option --- src/link/main.c | 2 +- src/link/rgblink.1 | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/link/main.c b/src/link/main.c index c0bed5de..34807a76 100644 --- a/src/link/main.c +++ b/src/link/main.c @@ -119,7 +119,7 @@ static struct option const longopts[] = { static void printUsage(void) { fputs( -"Usage: rgblink [-dtVvw] [-l script] [-m map_file] [-n sym_file]\n" +"Usage: rgblink [-dtVvwx] [-l script] [-m map_file] [-n sym_file]\n" " [-O overlay_file] [-o out_file] [-p pad_value] [-s symbol]\n" " ...\n" "Useful options:\n" diff --git a/src/link/rgblink.1 b/src/link/rgblink.1 index 6fde324b..712ecf63 100644 --- a/src/link/rgblink.1 +++ b/src/link/rgblink.1 @@ -13,7 +13,7 @@ .Nd Game Boy linker .Sh SYNOPSIS .Nm -.Op Fl dtVvw +.Op Fl dtVvwx .Op Fl l Ar linker_script .Op Fl m Ar map_file .Op Fl n Ar sym_file @@ -102,6 +102,14 @@ Print the version of the program and exit. Verbose: enable printing more information to standard error. .It Fl w , Fl Fl wramx Expand the WRAM0 section size from 4 KiB to the full 8 KiB assigned to WRAM and prohibit the use of WRAMX sections. +.It Fl x , Fl Fl nopad +Disables padding the end of the final file. +This option automatically enables +.Fl t . +You can use this when not not making a ROM. +When making a ROM, be careful that not using this is not a replacement for +.Xr rgbfix 1 Ap s Fl p +option! .El .Sh EXAMPLES All you need for a basic ROM is an object file, which can be made into a ROM image like so: