mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 23:35:02 +00:00
Revert the binutils workaround committed in r219340, the underlying
problem has been fixed in r219530.
This commit is contained in:
parent
b5eb05bb72
commit
09b64d66b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219531
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue