]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r329557 from upstream lld trunk (by George Rimar):
authorDimitry Andric <dim@FreeBSD.org>
Sat, 29 Sep 2018 14:12:03 +0000 (14:12 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 29 Sep 2018 14:12:03 +0000 (14:12 +0000)
commitd07b9c7a7d5e4ad21a1ee78624561c0f1ea49ed4
tree995e040f38a9aa8c3bb2129eebdaf41e781bbeae
parent1687b1ab24cff6f73fb79b815156691459d08400
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.

Approved by: re (kib)
Reported by: markj
PR: 230444
MFC after: 3 days
contrib/llvm/tools/lld/ELF/Writer.cpp