This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Build csu/bcrt1.o only if build-bounded=yes


I decided to punt on building BP startup files unconditionally.  BP
startup files currently require `-fbounded-pointers' (which wasn't
being passed because defining CPPFLAGS-.ob depends on
build-bounded=yes), but that's not available in any production gcc.
For now, it's best to just leave out all BP stuff unless someone
asks for it.

2000-07-03  Greg McGary  <greg@mcgary.org>

	* csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
	($(objpfx)b$(start-installed-name)): Add non-elf rule.

Index: csu/Makefile
===================================================================
RCS file: /cvs/glibc/libc/csu/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- Makefile	2000/06/27 01:20:01	1.42
+++ Makefile	2000/07/04 00:58:39
@@ -30,12 +30,14 @@ subdir := csu
 routines = init-first libc-start $(libc-init) sysdep version check_fds
 csu-dummies = $(filter-out $(start-installed-name),crt1.o Mcrt1.o)
 extra-objs = start.o gmon-start.o \
-	     $(start-installed-name) g$(start-installed-name) b$(start-installed-name) \
-	     $(csu-dummies)
+	     $(start-installed-name) g$(start-installed-name) $(csu-dummies)
 omit-deps = $(patsubst %.o,%,$(start-installed-name) g$(start-installed-name) \
 			      b$(start-installed-name) $(csu-dummies))
-install-lib = $(start-installed-name) g$(start-installed-name) b$(start-installed-name) \
-	      $(csu-dummies)
+install-lib = $(start-installed-name) g$(start-installed-name) $(csu-dummies)
+ifeq (yes,$(build-bounded))
+extra-objs += b$(start-installed-name)
+install-lib += b$(start-installed-name)
+endif
 distribute = initfini.c gmon-start.c start.c defs.awk munch.awk \
 	     abi-note.S init.c munch-tmpl.c
 generated = version-info.h
@@ -137,6 +139,9 @@ else
 # The startfile is installed under different names, so we just call our
 # source file `start.c' and copy to the installed name after compiling.
 $(objpfx)$(start-installed-name): $(objpfx)start.o
+	rm -f $@
+	ln $< $@
+$(objpfx)b$(start-installed-name): $(objpfx)start.ob
 	rm -f $@
 	ln $< $@
 endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]