PATCH: Build csu/bcrt1.o only if build-bounded=yes
Greg McGary
greg@mcgary.org
Mon Jul 3 18:04:00 GMT 2000
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
More information about the Libc-hacker
mailing list