HHVM uses --section-ordering-file,/aux/hubicka/hhvm/hphp/hhvm/../tools/oss_hot_section_ordering, which makes gold to link for about 5 minutes spending a lot of time in __gconv_transform_utf8_internal which is being used from gold::Layout::find_section_order_index
Do you have a lot of glob patterns in your ordering file?
Does setting LC_ALL=C improve the performance? (Assuming that you don't have any non-ASCII strings in your ordering file or among the symbol names.)
Created attachment 11529 [details]
I am attaching the ordering file. I just spoke with HHVM developers and they say that they had fixed it, so there may be patch for this already.
> I am attaching the ordering file. I just spoke with HHVM developers and they
> say that they had fixed it, so there may be patch for this already.
Ugh, every last line in that file is a wild card. I'm surprised it only takes 5 minutes. I guess we'll have to do something a bit smarter, then.
Is there a reason you need the '*' at the end of every section name?
Any idea what the fix was? (Was it removing the '*'?)