LLVM backend for 6502
Go to file
Rafael Espindola 7486d92a6c Change how we iterate over relocations on ELF.
For COFF and MachO, sections semantically have relocations that apply to them.
That is not the case on ELF.

In relocatable objects (.o), a section with relocations in ELF has offsets to
another section where the relocations should be applied.

In dynamic objects and executables, relocations don't have an offset, they have
a virtual address. The section sh_info may or may not point to another section,
but that is not actually used for resolving the relocations.

This patch exposes that in the ObjectFile API. It has the following advantages:

* Most (all?) clients can handle this more efficiently. They will normally walk
all relocations, so doing an effort to iterate in a particular order doesn't
save time.

* llvm-readobj now prints relocations in the same way the native readelf does.

* probably most important, relocations that don't point to any section are now
visible. This is the case of relocations in the rela.dyn section. See the
updated relocation-executable.test for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182908 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-30 03:05:14 +00:00
autoconf Make R600 non-experimental. 2013-05-22 00:35:47 +00:00
bindings
cmake Add colored diagnostics when building LLVM with cmake + ninja + clang 2013-05-29 20:41:35 +00:00
docs Debug Info: Update documentation to match recent (& not so recent) schema changes 2013-05-29 02:05:13 +00:00
examples
include Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
lib Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
projects sync projects/sample's autohell. 2013-05-22 12:37:27 +00:00
runtime
test Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
tools Don't reach into the middle of TargetMachine and cache one of its ivars. 2013-05-29 20:37:19 +00:00
unittests Add a comment and some tests including the NULL byte. 2013-05-30 00:43:26 +00:00
utils Remove the MCRegAliasIterator tables and compute the aliases dynamically. 2013-05-28 18:08:48 +00:00
.arcconfig
.gitignore
CMakeLists.txt Allow duplicates in LLVM_TARGETS_TO_BUILD and LLVM_EXPERIMENTAL_TARGETS_TO_BUILD. 2013-05-22 02:45:28 +00:00
CODE_OWNERS.TXT
configure Make R600 non-experimental. 2013-05-22 00:35:47 +00:00
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
Makefile
Makefile.common
Makefile.config.in
Makefile.rules Remove redundant rpath. 2013-05-23 02:53:22 +00:00
README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you're writing a package for LLVM, see docs/Packaging.rst for our
suggestions.