mcc

mcc is a machine code compiler.

Log | Files | << Repositories


tree dbf66e9501e51631606f019c3e649470728d771b
parent a9ce47b404f588b56b7b9a8887fd5ff669538ae8
author esote <esote.net@gmail.com> 1558314216 -0500
committer esote <esote.net@gmail.com> 1558314216 -0500
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQTXAxYDuIzimYoNSPuhTmRAjzzC8gUCXSArJAAKCRChTmRAjzzC
 8offAP0YnzEAa7MAKNEOKlifRr5IddhMyUFuyUaglbTNU7zdcwD6A0Wmc/q1FFuW
 9+Stu1PGvoyLyQZpdb3oN0kzMVB4IQs=
 =IPMz
 -----END PGP SIGNATURE-----

Describe -s flag, fix manual typo

 README | 5 ++++-
 mcc.1  | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/README b/README
index 780b828..d0ce109 100644
--- a/README
+++ b/README
@@ -14,7 +14,7 @@ DESCRIPTION
 
 	Supports little-endian x86-64 and i386 execution environments using the
 	System V application binary interface. 64-bit is the default mode,
-	32-bit mode is specified with the -s option.
+	32-bit mode is specified with the -3 option.
 
 	When writing to the .bss section, specify the size of memory reserved
 	using the -m option. If the size is zero (default), no .bss section will
@@ -28,6 +28,9 @@ DESCRIPTION
 	.bss is aligned to a 16-byte constraint and .text to an 8-byte
 	constraint.
 
+	Use the -s option to mark the .text section as writable, allowing
+	self-modifying code.
+
 AUTHORS
 	mcc was written by Esote.
 
diff --git a/mcc.1 b/mcc.1
index c74c6f0..24fd57a 100644
--- a/mcc.1
+++ b/mcc.1
@@ -41,7 +41,7 @@ The default is to put the executable in \fIa.out\fR.
 Supports little-endian x86-64 and i386 execution environments using the
 System V application binary interface. 64-bit is the default mode,
 32-bit mode is specified with the
-.Fl s
+.Fl 3
 option.
 .Pp
 When writing to the .bss section, specify the size of memory reserved
@@ -59,6 +59,10 @@ systems).
 .Pp
  .bss is aligned to a 16-byte constraint and .text to an 8-byte
 constraint.
+.Pp
+Use the
+.Fl s
+option to mark the .text section as writable, allowing self-modifying code.
 .Sh AUTHORS
 .Nm mcc
 was written by