From b0fdd73677eea5df875efc2599d480f7d29fa246 Mon Sep 17 00:00:00 2001 From: dfr Date: Tue, 13 May 1997 10:23:47 +0000 Subject: Changes to support the kernel linker: Add a -Bforcedynamic option which generates a dynamic object even if no shared libraries were given in the link. Make RRS in text section warnings conditional on "-assert pure-text" so that I can link non-PIC kernel modules without tons of link errors. Changes to bsd.lib.mk to follow. Fix a couple of bugs exposed by the fact that the kernel is not linked at zero. Reviewed by: jdp --- libexec/rtld-aout/dynamic.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/rtld-aout/dynamic.h b/libexec/rtld-aout/dynamic.h index 1231a62..c1890db 100644 --- a/libexec/rtld-aout/dynamic.h +++ b/libexec/rtld-aout/dynamic.h @@ -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$ + * $Id: dynamic.h,v 1.3 1997/02/22 15:46:18 peter Exp $ */ #ifndef __DYNAMIC_H__ @@ -279,6 +279,9 @@ extern int link_mode; of archives */ #define SHAREABLE 8 /* Build a shared object */ #define SILLYARCHIVE 16 /* Process .sa companions, if any */ +#define FORCEDYNAMIC 32 /* Force dynamic output even if no + shared libraries included */ +#define WARNRRSTEXT 64 /* Warn about rrs in text */ extern FILE *outstream; /* Output file. */ extern struct exec outheader; /* Output file header. */ -- cgit v1.1