llvm-project/lld
Alex Richardson 5bab291b7b Ignore R_MIPS_JALR relocations against non-function symbols
Summary:
Current versions of clang would erroneously emit this relocation not only
against functions (loaded from the GOT) but also against data symbols
(e.g. a table of function pointers). LLD was then changing this into a
branch-and-link instruction, causing the program to jump to the data
symbol at run time. I discovered this problem when attempting to boot
MIPS64 FreeBSD after updating the to the latest upstream master.

Reviewers: atanasyan, jrtc27, espindola

Reviewed By: atanasyan

Subscribers: emaste, sdardis, krytarowski, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70406
2019-11-20 13:23:26 +00:00
..
COFF Use lld::make<T> to make TpiSource objects 2019-11-20 13:14:44 +09:00
Common Make it possible to redirect not only errs() but also outs() 2019-11-18 11:18:06 +09:00
ELF Ignore R_MIPS_JALR relocations against non-function symbols 2019-11-20 13:23:26 +00:00
MinGW Make it possible to redirect not only errs() but also outs() 2019-11-18 11:18:06 +09:00
cmake/modules [CMake] Properly conditionalize installation of lld libraries 2018-03-09 13:09:36 +00:00
docs [lld] [ELF] Add '-z nognustack' opt to suppress emitting PT_GNU_STACK 2019-10-29 17:54:23 +01:00
include/lld Fix Windows buildbots 2019-11-18 16:45:00 +09:00
lib Revert "Fix shared lib build." 2019-11-19 12:05:55 +09:00
test Ignore R_MIPS_JALR relocations against non-function symbols 2019-11-20 13:23:26 +00:00
tools/lld Make it possible to redirect not only errs() but also outs() 2019-11-18 11:18:06 +09:00
unittests Make it possible to redirect not only errs() but also outs() 2019-11-18 11:18:06 +09:00
utils Python 2/3 compatibility 2019-03-20 07:42:13 +00:00
wasm Make it possible to redirect not only errs() but also outs() 2019-11-18 11:18:06 +09:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt [CMake] Don't set Python_ADDITIONAL_VERSIONS 2019-07-18 15:17:42 +00:00
CODE_OWNERS.TXT
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
README.md

README.md

LLVM Linker (lld)

This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.

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

Benchmarking

In order to make sure various developers can evaluate patches over the same tests, we create a collection of self contained programs.

It is hosted at https://s3-us-west-2.amazonaws.com/linker-tests/lld-speed-test.tar.xz

The current sha256 is 10eec685463d5a8bbf08d77f4ca96282161d396c65bd97dc99dbde644a31610f.