llvm-6502/lib/MC/MCParser
Oliver Stannard b63d71ef81 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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221150 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-03 12:02:51 +00:00
..
AsmLexer.cpp MC: AsmLexer: handle multi-character CommentStrings correctly 2014-08-14 02:51:43 +00:00
AsmParser.cpp Emit .eh_frame with relocations to functions, rather than sections 2014-11-03 12:02:51 +00:00
CMakeLists.txt
COFFAsmParser.cpp MC: Diagnose an unexpected token in COFF .section instead of asserting 2014-08-11 18:34:43 +00:00
DarwinAsmParser.cpp Modernize raw_fd_ostream's constructor a bit. 2014-08-25 18:16:47 +00:00
ELFAsmParser.cpp Downgrade DWARF2 section limit error to a warning 2014-09-22 10:45:16 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile
MCAsmLexer.cpp [mips] Print warning when using register names not available in N32/64 2014-10-03 15:37:37 +00:00
MCAsmParser.cpp [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp [ms-inline asm] Add the isParsingInlineAsm() function to the MCAsmTargetParser. 2012-10-19 17:57:49 +00:00