commit e27e71e4129cb93d1af220f69a621fea7402af43
parent 17a2ac09a4306129d5ec039ff52f74a48b226e48
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 21 Aug 2019 11:54:07 +0100
[ld] Simplify Segment
There isn't any reason to have an unsigned count
and the name is not needed at all.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/cmd/ld/ld.h b/src/cmd/ld/ld.h
@@ -18,9 +18,8 @@ struct section {
};
struct segment {
- char *name;
int type;
- unsigned nsec;
+ int nsec;
unsigned long long base;
unsigned long size;
Section **sections;