]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r339013:
authordim <dim@FreeBSD.org>
Thu, 18 Oct 2018 19:19:45 +0000 (19:19 +0000)
committerdim <dim@FreeBSD.org>
Thu, 18 Oct 2018 19:19:45 +0000 (19:19 +0000)
commit83723651deef9573acf04ccc207cb053c8adca55
tree7741726e2720a821eca85633c3e6d50d1efb4e18
parentb1edf1f53b47187ec3b8b3306f1602ce747f8bea
MFC r339013:

Pull in r329557 from upstream lld trunk (by George Rimar):

  [ELF] - Allow LLD to produce file symbols.

  This is for PR36716 and
  this enables emitting STT_FILE symbols.

  Output size affect is minor:
  lld binary size changes from 52,883,408 to 52,949,400
  clang binary size changes from 83,136,456 to 83,219,600

  Differential revision: https://reviews.llvm.org/D45261

This fixes a regression in lld that made it stop emitting STT_FILE
symbols, which ctfmerge relies upon to uniquify function table entries
that reference STB_LOCAL symbols.  Consequently, ctfmerge stopped
emitting entries for static functions into the function table, and
dtrace no longer gets type info for them.

Reported by: markj
PR: 230444
contrib/llvm/tools/lld/ELF/Writer.cpp