Recent Paul K. changes for compiling X shared (tested on my box).

This commit is contained in:
Jordan K. Hubbard 1993-11-18 20:52:34 +00:00
parent 57bb0ee45f
commit 437c34ef5b
2 changed files with 12 additions and 3 deletions

View File

@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91";
Set, indirect, and warning symbol features added by Randy Smith. */
/*
* $Id: ld.c,v 1.7 1993/11/16 00:42:57 paul Exp $
* $Id: ld.c,v 1.8 1993/11/16 07:20:35 paul Exp $
*/
/* Define how to initialize system-dependent header fields. */
@ -1773,7 +1773,9 @@ consider_relocation (entry, dataseg)
/* Call to shared library procedure */
alloc_rrs_jmpslot(sp);
if (!RELOC_PCREL_P(reloc)) {
sp->aux = RRS_FUNC;
}
} else if (sp->size &&
(sp->so_defined == N_DATA + N_EXT ||
sp->so_defined == N_TEXT + N_EXT)) {

View File

@ -1,4 +1,4 @@
/* $Id: ld.h,v 1.4 1993/11/01 16:26:16 pk Exp $ */
/* $Id: ld.h,v 1.2 1993/11/09 04:18:59 paul Exp $ */
/*-
* This code is derived from software copyrighted by the Free Software
* Foundation.
@ -427,6 +427,13 @@ typedef struct glosym {
/* Size of symbol as determined by N_SIZE 'nlist's in object files */
int size;
/* Auxialiary info to put in the `nz_other' field of the
* RRS symbol table. Used by the run-time linker to resolve
* references to function addresses from within shared objects.
*/
int aux;
#define RRS_FUNC 2
/*
* Chain of external 'nlist's in shared objects for this symbol, both
* defs and refs.