gas: put zero data into .bss by default

This allows frontends to use BSS generically, without knowledge of
platform-dependent details.
This commit is contained in:
Michael Forney 2022-02-10 15:29:20 -08:00 committed by Quentin Carbonneaux
parent 9fc0394d7e
commit 7aceb24c50
3 changed files with 20 additions and 11 deletions

6
all.h
View file

@ -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;