> IIUC this ld(1) behavior is somewhat similar to -fno-common for cc(1).
> base-clang already does -fno-common by default, base-gcc does not.  The
> diff below replaces ld -dc by cc -fno-common, but TBF I'm not sure what
> we're trying to achieve (avoid?) here.  A test (make build + release) on
> a base-gcc arch would be welcome.

An hppa snap with this diff builds without problems, but the resulting
binary in bsd.rd does not run correctly:

...
root on rd0a swap on rd0b dump on rd0b
panic: init died (signal 0, exit 11)

I will investigate further.

Reply via email to