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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/getconf/Makefile
          +++ new/usr/src/cmd/getconf/Makefile
↓ open down ↓ 103 lines elided ↑ open up ↑
 104  104  $(X6)/%.o:      %.c
 105  105          $(COMPILE.c) -o $@ $<
 106  106  
 107  107  
 108  108  $(X6):
 109  109          -@mkdir -p $@
 110  110  
 111  111  
 112  112  install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
 113  113  
 114      -values-xpg4.o: ../../lib/common/common/values-xpg4.c
 115      -        $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
      114 +values-xpg4.o: ../../lib/crt/common/values-xpg4.c
      115 +        $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c
 116  116  
 117  117  clean:
 118  118          -@rm -rf $(OBJS) $(XPG4EXOBJS) $(XPG6EXOBJS) $(X4) $(X6) \
 119  119                  $(PROG) $(XPG4) $(XPG6)
 120  120  
 121  121  lint:   lint_PROG
 122  122  
 123  123  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX