llvm-6502/include/llvm/Object
David Majnemer 16d8031f94 MC, COFF: Use relocations for function references inside the section
Referencing one symbol from another in the same section does not
generally require a relocation.  However, the MS linker has a feature
called /INCREMENTAL which enables incremental links.  It achieves this
by creating thunks to the actual function and redirecting all
relocations to point to the thunk.

This breaks down with the old scheme if you have a function which
references, say, itself.  On x86_64, we would use %rip relative
addressing to reference the start of the function from out current
position.  This would lead to miscompiles because other references might
reference the thunk instead, breaking function pointer equality.

This fixes PR21520.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221678 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-11 08:43:57 +00:00
..
Archive.h Object: Add range iterators for Archive children 2014-09-25 22:56:54 +00:00
Binary.h [Object] Modify OwningBinary's interface to separate inspection from ownership. 2014-10-31 21:37:49 +00:00
COFF.h MC, COFF: Use relocations for function references inside the section 2014-11-11 08:43:57 +00:00
COFFYAML.h Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
ELF.h Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 05:25:25 +00:00
ELFObjectFile.h Fix getRelocationValueString to return the symbol name for EM_386. 2014-10-29 18:37:13 +00:00
ELFTypes.h Add accessor to get 'visibility' part of st_other field 2014-11-05 20:47:35 +00:00
ELFYAML.h [ELF][yaml2obj] Handle additional MIPS specific st_other field flags 2014-11-06 22:46:24 +00:00
Error.h LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
IRObjectFile.h LTO: introduce object file-based on-disk module format. 2014-09-18 21:28:49 +00:00
MachO.h Add the code and test cases for 32-bit Intel to llvm-objdump’s Mach-O symbolizer. 2014-11-04 00:43:16 +00:00
MachOUniversal.h Be more specific about return type of MachOUniversalBinary::getObjectForArch 2014-10-20 20:30:57 +00:00
ObjectFile.h Remove bogus std::error_code returns form SectionRef. 2014-10-08 15:28:58 +00:00
RelocVisitor.h Constify input argument of RelocVisitor and DWARFContext constructors. NFC. 2014-10-20 20:28:51 +00:00
SymbolicFile.h [MCJIT] Temporarily revert r220245 - it broke several bots. 2014-10-21 00:24:02 +00:00