commit d4f9d2c95f2fcc650b00fc39e6690df9ed953c89
parent b9d7c95aa5bf9e06fc7d6a58cd5d0c600f128bf3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 24 Aug 2019 22:15:13 +0100
[ld] Add debug section
This segment is useful for debug information.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/cmd/ld/main.c b/src/cmd/ld/main.c
@@ -22,6 +22,7 @@ Segment text = {.type = 'T'};
Segment rodata = {.type = 'R'};
Segment data = {.type = 'D'};
Segment bss = {.type = 'B'};
+Segment debug = {.type = 'N'};
char *output = "a.out", *entry = "start";
static int status;