summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-02-10 15:29:20 -0800
committerQuentin Carbonneaux <quentin@c9x.me>2022-02-11 08:49:42 +0100
commit7aceb24c50276322f79e7d13cbc6c9cd9251f447 (patch)
treecfb133aeef9cfeb99400b67bd2e57dea8e3ebca7 /parse.c
parent9fc0394d7ed2b86be9eae7f2b410e83fbe3ae497 (diff)
downloadroux-7aceb24c50276322f79e7d13cbc6c9cd9251f447.tar.gz
gas: put zero data into .bss by default
This allows frontends to use BSS generically, without knowledge of
platform-dependent details.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 5e5ab66..fb8b509 100644
--- a/parse.c
+++ b/parse.c
@@ -1010,8 +1010,8 @@ parsedat(void cb(Dat *), Lnk *lnk)
 		t = nextnl();
 	}
 	d.type = DStart;
-	d.u.start.name = name;
-	d.u.start.lnk = lnk;
+	d.name = name;
+	d.lnk = lnk;
 	cb(&d);
 
 	if (t != Tlbrace)