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 We need to compile with -DVARPSZ, because ...



details:   https://anonhg.NetBSD.org/src/rev/9b2641efddda
branches:  trunk
changeset: 473936:9b2641efddda
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jun 22 16:28:22 1999 +0000

description:
We need to compile with -DVARPSZ, because the sparc has a variable page
size depending on arch. Make it an error to compile without it. This
caused -lposix linked programs to fail.

diffstat:

 libexec/ld.elf_so/arch/sparc/Makefile.inc |  4 ++--
 libexec/ld.elf_so/rtld.h                  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 86850153a40a -r 9b2641efddda libexec/ld.elf_so/arch/sparc/Makefile.inc
--- a/libexec/ld.elf_so/arch/sparc/Makefile.inc Tue Jun 22 15:04:15 1999 +0000
+++ b/libexec/ld.elf_so/arch/sparc/Makefile.inc Tue Jun 22 16:28:22 1999 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: Makefile.inc,v 1.1 1999/02/24 18:25:40 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.2 1999/06/22 16:28:23 christos Exp $
 
 SRCS+= rtld_start.S mdreloc.c
 
-CPPFLAGS+= -fpic -DELFSIZE=32 -DRTLD_RELOCATE_SELF
+CPPFLAGS+= -fpic -DELFSIZE=32 -DRTLD_RELOCATE_SELF -DVARPSZ
 LDFLAGS+= -Bshareable -Bsymbolic -e _rtld_start
diff -r 86850153a40a -r 9b2641efddda libexec/ld.elf_so/rtld.h
--- a/libexec/ld.elf_so/rtld.h  Tue Jun 22 15:04:15 1999 +0000
+++ b/libexec/ld.elf_so/rtld.h  Tue Jun 22 16:28:22 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.h,v 1.12 1999/06/16 15:41:24 kleink Exp $  */
+/*     $NetBSD: rtld.h,v 1.13 1999/06/22 16:28:22 christos Exp $        */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -62,7 +62,7 @@
 #  ifndef __sparc__
 #   define PAGESIZE    CLBYTES
 #  else
-#   define PAGESIZE    8192    /* NPBG is not constant! */
+   #error "Sparc has a variable page size"
 #  endif
 # endif
 #endif



Home | Main Index | Thread Index | Old Index