LLVM backend for 6502
Go to file
Rafael Espindola 85f2ecc697 Sorry for such a large commit. The summary is that only MachO cares about the
actuall addresses in a .o file, so it is better to let the MachO writer compute
it.

This is good for two reasons. First, areas that shouldn't care about
addresses now don't have access to it. Second, the layout of each section
is independent. I should use this in a subsequent commit to speed it up.

Most of the patch is just removing the section address computation. The two
interesting parts are the change on how we handle padding in the end
of sections and how MachO can get the address of a-b when a and b are in
different sections.

Since now the expression evaluation normally doesn't know the section address,
it will think that a-b needs relocation and let the MachO writer know. Once
it has computed the section addresses, it calls back the expression evaluation
with the section addresses to resolve these expressions.

The remaining problem is the handling of padding. Currently it will create
a special alignment fragment at the end. Since that fragment doesn't update
the alignment of the section, it needs the real address to be computed.

Since now the layout will not compute a-b with a and b in different sections,
the only effect that the special alignment fragment has is update the
address size of the section. This can also be done by the MachO writer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121076 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-07 00:27:36 +00:00
autoconf
bindings
cmake Disable C++ exception handling on MSVC. 2010-12-04 14:30:22 +00:00
docs Clarify some of the differences between indexing with getelementptr and indexing with insertvalue/extractvalue. 2010-12-05 20:54:38 +00:00
examples
include Sorry for such a large commit. The summary is that only MachO cares about the 2010-12-07 00:27:36 +00:00
lib Sorry for such a large commit. The summary is that only MachO cares about the 2010-12-07 00:27:36 +00:00
projects
runtime
test Implement jump threading of 'indirectbr' by keeping track of whether we're looking for ConstantInt*s or BlockAddress*s. 2010-12-06 23:36:56 +00:00
tools Do not try luck by using given name to create temporary file. In parallel builds it may not work. 2010-12-06 18:04:39 +00:00
unittests Support/FileSystem: Add directory_iterator implementation. 2010-12-06 04:28:42 +00:00
utils Add fixup for Thumb1 BL/BLX instructions. 2010-12-06 23:57:07 +00:00
website
build-for-llvm-top.sh
CMakeLists.txt Disable C++ exception handling on MSVC. 2010-12-04 14:30:22 +00:00
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
Makefile
Makefile.common
Makefile.config.in
Makefile.rules
ModuleInfo.txt
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 HTML documentation provided in docs/index.html for further
assistance with LLVM.

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