llvm-project/lld/test
Adhemerval Zanella 15cba9e7e5 [lld] [ELF/AARCH64] Fix dynamic relocation from PIC GOT access
This patch fixes dynamic relocation creation from GOT access in dynamic
objects on aarch64. Current code creates a plt relative one
(R_AARCH64_JUMP_SLOT) instead of a got relative (R_AARCH64_GLOB_DAT).

It leads the programs fails with:

$ cat t.cc

std::string test = "hello...\n";

int main ()
{
  printf ("%s\n", test.c_str());
  return 0;
}
$ clang++ t.cc -fpic -o t
$ ./t
hello...

Segmentation fault (core dumped)

Due the fact it will try to access the plt instead of the got for
__cxa_atexit registration for the std::string destruction.  It will
lead in a bogus function address in atexit.

llvm-svn: 265784
2016-04-08 14:10:41 +00:00
..
COFF [COFF] Correct tests with bogus alignment 2016-03-18 21:47:12 +00:00
Driver/Inputs Remove the old ELF linker. 2016-02-28 00:10:58 +00:00
ELF [lld] [ELF/AARCH64] Fix dynamic relocation from PIC GOT access 2016-04-08 14:10:41 +00:00
Unit [lit] Python 3. 2014-03-26 00:53:48 +00:00
darwin Add the GC commandline options and throw errors if they are used 2016-01-15 17:39:02 +00:00
mach-o Parsed alignment should be a power of 2. 2016-03-24 00:36:37 +00:00
CMakeLists.txt Add dependency to llvm-dis. 2016-03-14 23:16:13 +00:00
lit.cfg Fix the detection of the shell feature and disable some tests when its not present 2016-03-30 20:15:50 +00:00
lit.site.cfg.in [lit] Python 3. 2014-03-26 00:53:48 +00:00