Print this page
crt: Need a position-independent CRT for PIE
- Implement the greatest possible part of the crt1 in C
- Implement SPARC versions of the ASM sections of crt1
- Build crt1 position-independently, minor ASM updates to be position
  independent
- Implement crt1 with the hook expected by modern GCC to support
  profiling, make gcrt1 a symlink for source compatibility (older GCC
  initializes profiling at firsnt use of _mcount if necessary, so
  doesn't need the gcrt)
- Split the CRT out of developer/library/lint into a separate c-runtime package


  86 edobjs.xpg6/%.o:        %.c
  87         $(COMPILE.c) -o $@ $<
  88 
  89 edobjs.xpg6/%.o:        ../expr/compile.c
  90         $(COMPILE.c) -o $@ $<
  91 
  92 edobjs.xpg4:
  93         -@mkdir -p $@
  94 
  95 edobjs.xpg6:
  96         -@mkdir -p $@
  97 
  98 $(POFILE): $(POFILES)
  99         $(RM) $@
 100         cat $(POFILES) > $@
 101 
 102 install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
 103         $(RM) $(ROOTBIN)/red
 104         $(LN) $(ROOTBIN)/ed $(ROOTBIN)/red
 105 
 106 values-xpg4.o: ../../lib/common/common/values-xpg4.c
 107         $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
 108 
 109 values-xpg6.o: ../../lib/common/common/values-xpg6.c
 110         $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg6.c
 111 
 112 clean:
 113         -@rm -rf $(OBJS) $(XPG4) $(XPG6) edobjs.xpg4 edobjs.xpg6 \
 114                 compile.c.i
 115 
 116 lint:   lint_PROG
 117 
 118 include ../Makefile.targ


  86 edobjs.xpg6/%.o:        %.c
  87         $(COMPILE.c) -o $@ $<
  88 
  89 edobjs.xpg6/%.o:        ../expr/compile.c
  90         $(COMPILE.c) -o $@ $<
  91 
  92 edobjs.xpg4:
  93         -@mkdir -p $@
  94 
  95 edobjs.xpg6:
  96         -@mkdir -p $@
  97 
  98 $(POFILE): $(POFILES)
  99         $(RM) $@
 100         cat $(POFILES) > $@
 101 
 102 install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
 103         $(RM) $(ROOTBIN)/red
 104         $(LN) $(ROOTBIN)/ed $(ROOTBIN)/red
 105 
 106 values-xpg4.o: ../../lib/crt/common/values-xpg4.c
 107         $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c
 108 
 109 values-xpg6.o: ../../lib/crt/common/values-xpg6.c
 110         $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg6.c
 111 
 112 clean:
 113         -@rm -rf $(OBJS) $(XPG4) $(XPG6) edobjs.xpg4 edobjs.xpg6 \
 114                 compile.c.i
 115 
 116 lint:   lint_PROG
 117 
 118 include ../Makefile.targ