On 200810 2139, Paolo Bonzini wrote: > On 10/08/20 21:01, Daniele Buono wrote: > > So I'm thinking of adding a check in configure. If gold is the linker, > > automatically create (somehow, still working on it) the full link script > > by obtaining the default bfd script and add the required parts. Would > > that work for you? > > Maybe even do it unconditionally?
I agree. I can try a respin of my compiler-rt/libFuzzer patches to add a built-in fork-server to libFuzzer, so we can avoid the linker-script madness altogether. Don't know how soon I can get to this, but I do think it is worth another try. TIL about these differences between ld.bfd and ld.gold. So the idea is to use something like: "ld --verbose | grep -n ".*:" | grep -A1 "\s.data\s" | tail -n1" and insert the existing linker-script before that line? Thanks -Alex > Paolo >