[commit: ghc] master: [linker] fix armv7 & add aarch64 (1c83fd8)
git at git.haskell.org
git at git.haskell.org
Thu Jun 8 19:36:28 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/1c83fd814b12754be8af211a387cec906ca198b3/ghc
>---------------------------------------------------------------
commit 1c83fd814b12754be8af211a387cec906ca198b3
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Thu Jun 8 14:58:38 2017 -0400
[linker] fix armv7 & add aarch64
This adds Global Offset Table logic, as well as PLT like logic for armv7
and aarch64; which replaces the preexisting symbolExtras logic, by
placing the PLT tables next to the separtely loaded sections. This is
needed to ensure that the symbol stubs are in range.
Reviewers: bgamari, austin, erikd, simonmar
Reviewed By: bgamari
Subscribers: Ericson2314, ryantrinkle, rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3448
>---------------------------------------------------------------
1c83fd814b12754be8af211a387cec906ca198b3
rts/LinkerInternals.h | 11 +-
rts/linker/CacheFlush.c | 23 +-
rts/linker/Elf.c | 1026 ++++++++++++++++++++++++----------------
rts/linker/Elf.h | 2 +-
rts/linker/ElfTypes.h | 5 +
rts/linker/MachO.c | 134 +++---
rts/linker/SymbolExtras.c | 96 +---
rts/linker/elf_got.c | 131 +++++
rts/linker/elf_got.h | 15 +
rts/linker/elf_plt.c | 92 ++++
rts/linker/elf_plt.h | 44 ++
rts/linker/elf_plt_aarch64.c | 120 +++++
rts/linker/elf_plt_aarch64.h | 12 +
rts/linker/elf_plt_arm.c | 183 +++++++
rts/linker/elf_plt_arm.h | 12 +
rts/linker/elf_reloc.c | 12 +
rts/linker/elf_reloc.h | 13 +
rts/linker/elf_reloc_aarch64.c | 330 +++++++++++++
rts/linker/elf_reloc_aarch64.h | 10 +
rts/linker/elf_util.c | 9 +-
rts/linker/elf_util.h | 12 +-
rts/linker/util.h | 6 +-
22 files changed, 1681 insertions(+), 617 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 1c83fd814b12754be8af211a387cec906ca198b3
More information about the ghc-commits
mailing list