Revert the binutils workaround committed in r219340, the underlying

problem has been fixed in r219530.
This commit is contained in:
Marius Strobl 2011-03-11 20:01:57 +00:00
parent b5eb05bb72
commit 09b64d66b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219531

View file

@ -333,14 +333,7 @@ elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type,
addr = lookup(lf, symidx, 1);
if (addr == 0)
return (-1);
/*
* With the addition of TLS support binutils started to make
* addend values relative to relocbase instead of sections.
*/
if (addr > relocbase && addr <= relocbase + value)
value += relocbase;
else
value += addr;
value += addr;
if (RELOC_BARE_SYMBOL(rtype))
value = elf_relocaddr(lf, value);
}