ref: 8958e352dfdc764b69cbfd3cd7bab0d58885bb7f
parent: 8b1351fc3ea510cf56c072a65ac526e73604b6d3
author: ISSOtm <[email protected]>
date: Mon Apr 27 07:04:29 EDT 2020
Update documentation for new `-x` option
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -119,7 +119,7 @@
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"
" <file> ...\n"
"Useful options:\n"
--- 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 @@
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: