Go to file
Oliver Stannard 652ec6ee89 Emit .eh_frame with relocations to functions, rather than sections
When LLVM emits DWARF call frame information, it currently creates a local,
section-relative symbol in the code section, which is pointed to by a
relocation on the .eh_frame section. However, for C++ we emit some functions in
section groups, and the SysV ABI has some rules to make it easier to remove
these sections
(http://www.sco.com/developers/gabi/latest/ch4.sheader.html#section_group_rules):

  A symbol table entry with STB_LOCAL binding that is defined relative to one
  of a group's sections, and that is contained in a symbol table section that is
  not part of the group, must be discarded if the group members are discarded.
  References to this symbol table entry from outside the group are not allowed.

This means that we need to use the function symbol for the relocation, not a
temporary symbol.

There was a comment in the code claiming that the local symbol was used to
avoid creating a relocation, but a relocation must be created anyway as the
code and CFI are in different sections.

llvm-svn: 221150
2014-11-03 12:02:51 +00:00
clang [x86] Add cx16 feature to KNL, SKX, and CoreAVXi CPUs. 2014-11-03 07:05:28 +00:00
clang-tools-extra [CMake] clangApplyReplacement: Add clangAST in libdeps to appease msc builder. 2014-10-30 03:22:32 +00:00
compiler-rt [asan] increase the initial buffer size in caller-callee dumper 2014-10-31 19:49:46 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Prune CRLF. 2014-10-27 12:37:26 +00:00
libcxx Mark string_view::to_string as const. Fixes PR21428 2014-11-02 15:35:32 +00:00
libcxxabi Fix unicode chars into ascii in comment lines. 2014-10-27 08:08:18 +00:00
lld [LinkerScript] Change ErrorOr usage to fix MSVC2012 buildbots 2014-11-03 05:26:18 +00:00
lldb Fix the Makefile build by actually building ABI/SysV-ppc 2014-11-02 22:03:15 +00:00
llvm Emit .eh_frame with relocations to functions, rather than sections 2014-11-03 12:02:51 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly [FIX] Move the statistic code to fix the build. 2014-11-01 01:30:11 +00:00