Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so/arch Skip the lazy PLT relocation if reloc...
details: https://anonhg.NetBSD.org/src/rev/e5d05e6b807b
branches: trunk
changeset: 537630:e5d05e6b807b
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Oct 03 20:39:22 2002 +0000
description:
Skip the lazy PLT relocation if relocbase==0 (useful if libraries are loaded
at their VMA address).
diffstat:
libexec/ld.elf_so/arch/alpha/alpha_reloc.c | 4 ++--
libexec/ld.elf_so/arch/arm/mdreloc.c | 4 ++--
libexec/ld.elf_so/arch/i386/mdreloc.c | 4 ++--
libexec/ld.elf_so/arch/m68k/mdreloc.c | 4 ++--
libexec/ld.elf_so/arch/sh3/mdreloc.c | 4 ++--
libexec/ld.elf_so/arch/vax/mdreloc.c | 4 ++--
libexec/ld.elf_so/arch/x86_64/mdreloc.c | 4 ++--
7 files changed, 14 insertions(+), 14 deletions(-)
diffs (126 lines):
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/alpha/alpha_reloc.c
--- a/libexec/ld.elf_so/arch/alpha/alpha_reloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/alpha/alpha_reloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alpha_reloc.c,v 1.22 2002/09/26 20:42:10 mycroft Exp $ */
+/* $NetBSD: alpha_reloc.c,v 1.23 2002/10/03 20:39:22 mycroft Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -292,7 +292,7 @@
{
const Elf_Rela *rela;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rela = obj->pltrela; rela < obj->pltrelalim; rela++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/arm/mdreloc.c
--- a/libexec/ld.elf_so/arch/arm/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/arm/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.19 2002/09/26 20:42:11 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.20 2002/10/03 20:39:22 mycroft Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -192,7 +192,7 @@
{
const Elf_Rel *rel;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rel = obj->pltrel; rel < obj->pltrellim; rel++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/i386/mdreloc.c
--- a/libexec/ld.elf_so/arch/i386/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/i386/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.17 2002/09/26 20:42:11 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.18 2002/10/03 20:39:22 mycroft Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -159,7 +159,7 @@
{
const Elf_Rel *rel;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rel = obj->pltrel; rel < obj->pltrellim; rel++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/m68k/mdreloc.c
--- a/libexec/ld.elf_so/arch/m68k/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/m68k/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.15 2002/09/26 20:42:11 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.16 2002/10/03 20:39:22 mycroft Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -139,7 +139,7 @@
{
const Elf_Rela *rela;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rela = obj->pltrela; rela < obj->pltrelalim; rela++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/sh3/mdreloc.c
--- a/libexec/ld.elf_so/arch/sh3/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/sh3/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.13 2002/09/26 20:42:12 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.14 2002/10/03 20:39:23 mycroft Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -136,7 +136,7 @@
{
const Elf_Rela *rela;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rela = obj->pltrela; rela < obj->pltrelalim; rela++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/vax/mdreloc.c
--- a/libexec/ld.elf_so/arch/vax/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/vax/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.15 2002/09/26 22:26:27 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.16 2002/10/03 20:39:23 mycroft Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -125,7 +125,7 @@
{
const Elf_Rela *rela;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rela = obj->pltrela; rela < obj->pltrelalim; rela++) {
diff -r 32fa898f8fdc -r e5d05e6b807b libexec/ld.elf_so/arch/x86_64/mdreloc.c
--- a/libexec/ld.elf_so/arch/x86_64/mdreloc.c Thu Oct 03 20:35:19 2002 +0000
+++ b/libexec/ld.elf_so/arch/x86_64/mdreloc.c Thu Oct 03 20:39:22 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.19 2002/09/26 20:42:12 mycroft Exp $ */
+/* $NetBSD: mdreloc.c,v 1.20 2002/10/03 20:39:23 mycroft Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -205,7 +205,7 @@
{
const Elf_Rela *rela;
- if (!obj->isdynamic)
+ if (!obj->relocbase)
return 0;
for (rela = obj->pltrela; rela < obj->pltrelalim; rela++) {
Home |
Main Index |
Thread Index |
Old Index