recovery from new binutils part II: fix the alpha kernel so that

it handles R_ALPHA_RELATIVE relocs with addends properly.

tested by: ticso
This commit is contained in:
Andrew Gallatin 2002-02-21 23:34:09 +00:00
parent f553351ed2
commit 7cacd13117

View File

@ -101,7 +101,7 @@ elf_reloc(linker_file_t lf, const void *data, int type, const char *sym)
break;
case R_ALPHA_RELATIVE:
addr = relocbase + addend + *where;
addr = relocbase + addend;
if (*where != addr)
*where = addr;
break;