On Fri, Nov 03, 2017 at 11:41:57PM +0300, Yury Norov wrote: > Also, IIUC, this patch is not related to LTO, because if ld.gold doesn't > recognize -maarch64linux with LTO, it will not recognize it in non-LTO > build. Am I right?
That's correct. ld.gold --help says -m is obsolete, but at the same time, it supports a number of emulations, just with different names than ld.bfd. I'll take a closer look at this and see if there's a different flag we should be passing here instead. Looks like I also have some 0-day issues to address for v2. Sami