diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c index 7d0e8687116..9c532db1b7a 100644 --- a/gnu/usr.bin/ld/rtld/rtld.c +++ b/gnu/usr.bin/ld/rtld/rtld.c @@ -27,7 +27,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: rtld.c,v 1.34 1996/05/22 06:34:12 jdp Exp $ + * $Id: rtld.c,v 1.35 1996/10/01 01:51:53 peter Exp $ */ #include @@ -161,6 +161,18 @@ struct somap_private { /* Parent of link map */ #define LM_PARENT(smp) (LM_PRIVATE(smp)->spd_parent) +#ifndef RELOC_EXTERN_P +#define RELOC_EXTERN_P(s) ((s)->r_extern) +#endif + +#ifndef RELOC_SYMBOL +#define RELOC_SYMBOL(s) ((s)->r_symbolnum) +#endif + +#ifndef RELOC_PCREL_P +#define RELOC_PCREL_P(s) ((s)->r_pcrel) +#endif + static char __main_progname[] = "main"; static char *main_progname = __main_progname; static char us[] = "/usr/libexec/ld.so"; diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index 7d0e8687116..9c532db1b7a 100644 --- a/libexec/rtld-aout/rtld.c +++ b/libexec/rtld-aout/rtld.c @@ -27,7 +27,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: rtld.c,v 1.34 1996/05/22 06:34:12 jdp Exp $ + * $Id: rtld.c,v 1.35 1996/10/01 01:51:53 peter Exp $ */ #include @@ -161,6 +161,18 @@ struct somap_private { /* Parent of link map */ #define LM_PARENT(smp) (LM_PRIVATE(smp)->spd_parent) +#ifndef RELOC_EXTERN_P +#define RELOC_EXTERN_P(s) ((s)->r_extern) +#endif + +#ifndef RELOC_SYMBOL +#define RELOC_SYMBOL(s) ((s)->r_symbolnum) +#endif + +#ifndef RELOC_PCREL_P +#define RELOC_PCREL_P(s) ((s)->r_pcrel) +#endif + static char __main_progname[] = "main"; static char *main_progname = __main_progname; static char us[] = "/usr/libexec/ld.so";