Putting an all-zero variable into BSS

Thomas Koenig tkoenig@netcologne.de
Sat Apr 6 13:59:00 GMT 2019


Am 05.04.19 um 12:15 schrieb Richard Biener:

> Putting readonly data into .rodata isn't required by the C standard I think
> so we could freely choose .bss for data exceeding a reasonable
> size limit.

That would be the best solution, I think.

> IIRC GCC behaved one or another way in the past already
> and the last change might be due to security concerns.

I cannot speak to that. If there is concern for C, we could also
limit this to Fortran.

> Btw, large
> all-zeros constant objects don't make very much sense...

I am well aware of this, but we're not going to change this
before the GCC 9 release :-)

So, would it be possible for you to make the change wrt .bss?
I would not have the first idea where to start looking.

Regards

	Thomas



More information about the Gcc mailing list