diff options
author | dfr <dfr@FreeBSD.org> | 1999-07-16 09:16:11 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-07-16 09:16:11 +0000 |
commit | c760a74e9e18786dab3515d5b343d26f2661c80e (patch) | |
tree | 1aff8d4666136d3009d697b7de23f9d954619c11 | |
parent | bd76338214ab1d387a7c440edc616ab427c67d76 (diff) | |
download | FreeBSD-src-c760a74e9e18786dab3515d5b343d26f2661c80e.zip FreeBSD-src-c760a74e9e18786dab3515d5b343d26f2661c80e.tar.gz |
Handle R_ALPHA_NONE relocations in KLD.
-rw-r--r-- | sys/alpha/alpha/elf_machdep.c | 5 | ||||
-rw-r--r-- | sys/powerpc/powerpc/elf_machdep.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/alpha/alpha/elf_machdep.c b/sys/alpha/alpha/elf_machdep.c index 55811e5..2c559a5 100644 --- a/sys/alpha/alpha/elf_machdep.c +++ b/sys/alpha/alpha/elf_machdep.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: elf_machdep.c,v 1.3 1998/10/18 19:04:13 dfr Exp $ + * $Id: elf_machdep.c,v 1.4 1999/04/23 19:53:37 dt Exp $ */ #include <sys/param.h> @@ -67,6 +67,9 @@ elf_reloc(linker_file_t lf, const void *data, int type, const char *sym) switch (rtype) { + case R_ALPHA_NONE: + break; + case R_ALPHA_REFQUAD: addr = (Elf_Addr) linker_file_lookup_symbol(lf, sym, 1); diff --git a/sys/powerpc/powerpc/elf_machdep.c b/sys/powerpc/powerpc/elf_machdep.c index 55811e5..2c559a5 100644 --- a/sys/powerpc/powerpc/elf_machdep.c +++ b/sys/powerpc/powerpc/elf_machdep.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: elf_machdep.c,v 1.3 1998/10/18 19:04:13 dfr Exp $ + * $Id: elf_machdep.c,v 1.4 1999/04/23 19:53:37 dt Exp $ */ #include <sys/param.h> @@ -67,6 +67,9 @@ elf_reloc(linker_file_t lf, const void *data, int type, const char *sym) switch (rtype) { + case R_ALPHA_NONE: + break; + case R_ALPHA_REFQUAD: addr = (Elf_Addr) linker_file_lookup_symbol(lf, sym, 1); |