summary refs log tree commit diff
path: root/all.h
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 /all.h
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 'all.h')
-rw-r--r--all.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/all.h b/all.h
index 942c52d..257d6ba 100644
--- a/all.h
+++ b/all.h
@@ -387,6 +387,8 @@ struct Dat {
 		DL,
 		DZ
 	} type;
+	char *name;
+	Lnk *lnk;
 	union {
 		int64_t num;
 		double fltd;
@@ -396,10 +398,6 @@ struct Dat {
 			char *name;
 			int64_t off;
 		} ref;
-		struct {
-			char *name;
-			Lnk *lnk;
-		} start;
 	} u;
 	char isref;
 	char isstr;