llvm-project/lld/test
Zaara Syeda 85197a0842 [PPC64] Add .toc section after .got section
PPC64 maintains a compiler managed got in the .toc section. When accessing a
global variable through got-indirect access, a .toc entry is created for the
variable. The relocation for the got-indirect access will refer to the .toc
section rather than the symbol that is actually accessed. The .toc entry
contains the address of the global variable. We evaluate the offset from
r2 (which is the TOC base) to the address of the toc entry for the global
variable. Currently, the .toc is not near the .got. This causes errors because
the offset from r2 to the toc section is too large. The linker needs to add
all the .toc input sections to the .got output section, merging the compiler
managed got with the linker got. This ensures that the offsets from the TOC
base to the toc entries are not too large.

This patch puts the .toc section right after the .got section.

Differential Revision: https://reviews.llvm.org/D45833

llvm-svn: 333199
2018-05-24 15:59:41 +00:00
..
COFF Resubmit [pdb] Change /DEBUG:GHASH to emit 8 byte hashes." 2018-05-17 22:55:15 +00:00
Driver/Inputs
ELF [PPC64] Add .toc section after .got section 2018-05-24 15:59:41 +00:00
MinGW [MinGW] Handle the GNU ld option -Map for outputting a linker map 2018-05-15 21:12:29 +00:00
Unit [lit] Rename lld and clang lit configs to end in .py 2017-09-21 17:38:13 +00:00
darwin Replace -flavor {gnu,darwin} with ld64.lld or ld.lld. 2018-02-16 21:16:57 +00:00
mach-o [lit] Fix a problem with spaces in the python path by adding quotes around it 2018-02-21 00:03:41 +00:00
wasm [WebAssembly] Fix crash when relocation synbol is not live 2018-05-23 01:38:00 +00:00
CMakeLists.txt Add make targets for running all lld tests 2018-02-14 13:28:53 +00:00
lit.cfg.py Add llvm-dwarfdump tool_patterns 2018-05-05 00:32:26 +00:00
lit.site.cfg.py.in [PDB] Resubmit "Support embedding natvis files in PDBs." 2018-03-23 19:57:25 +00:00