On 08/17/2018 04:26 PM, Bernd Edlinger wrote: > Hi everybody, > > On 08/16/18 08:36, Bernd Edlinger wrote: >> Jeff Law wrote: >>> I wonder if the change to how we set up the initializers is ultimately >>> changing the section those go into and ultimately causing an overflow of >>> the .sdata section. >> >> >> Yes, that is definitely the case. >> Due to the -fmerge-all-constants option used >> named arrays with brace initializer look like string initializers >> and can go into the merge section if there are no embedded nul chars. >> But the string constants can now be huge. >> >> See my other patch about string merging: >> [PATCH] Handle not explicitly zero terminated strings in merge sections >> https://gcc.gnu.org/ml/gcc-patches/2018-08/msg00481.html >> >> >> Can this section overflow? >> > > > could someone try out if this (untested) patch fixes the issue? It seems to in my limited testing.
jeff