diff options
author | gallatin <gallatin@FreeBSD.org> | 2002-02-21 23:34:09 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2002-02-21 23:34:09 +0000 |
commit | 38d02464ac75e4ae210a4eebde84e102691d8f55 (patch) | |
tree | 7e4d76c7b9f0f818cb029fcaded5118290797a02 /sys/alpha | |
parent | 923ef3a5948e63cb5eb918f777be818f8a7249b5 (diff) | |
download | FreeBSD-src-38d02464ac75e4ae210a4eebde84e102691d8f55.zip FreeBSD-src-38d02464ac75e4ae210a4eebde84e102691d8f55.tar.gz |
recovery from new binutils part II: fix the alpha kernel so that
it handles R_ALPHA_RELATIVE relocs with addends properly.
tested by: ticso
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/elf_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/alpha/elf_machdep.c b/sys/alpha/alpha/elf_machdep.c index 5582fcb..cdb27c5 100644 --- a/sys/alpha/alpha/elf_machdep.c +++ b/sys/alpha/alpha/elf_machdep.c @@ -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; |