shithub: scc

Download patch

ref: e27e71e4129cb93d1af220f69a621fea7402af43
parent: 17a2ac09a4306129d5ec039ff52f74a48b226e48
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Aug 21 07:54:07 EDT 2019

[ld] Simplify Segment

There isn't any reason to have an unsigned count
and the name is not needed at all.

--- a/src/cmd/ld/ld.h
+++ b/src/cmd/ld/ld.h
@@ -18,9 +18,8 @@
 };
 
 struct segment {
-	char *name;
 	int type;
-	unsigned nsec;
+	int nsec;
 	unsigned long long base;
 	unsigned long size;
 	Section **sections;