x86-64: Add support for new psABI relocations
commitc4d0498b3ae3483fa7726500bd03e1f411289fff
authorMichael Matz <matz@suse.de>
Thu, 17 Dec 2015 06:17:34 +0000 (17 07:17 +0100)
committerMichael Matz <matz@suse.de>
Thu, 17 Dec 2015 06:17:34 +0000 (17 07:17 +0100)
treeaf52639f75121cebe1ebf274774ae26125df4a64
parentd1e15514aaf84bec6fddeaa2bd7b4027b175be6e
x86-64: Add support for new psABI relocations

R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX can occur in object files
comiled by new binutils.  They are not dynamic relocations, so normally
wouldn't be a problem for tcc (one doesn't normally mix object files
created by different compiler/binutils, static archives are so out :)).
If it weren't for the glibc startup code, crt*.o, of course.  They now
do contain such relocs --> boom.  Handle them in the trivial way.
tccelf.c