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/awk_xpg4/Makefile
          +++ new/usr/src/cmd/awk_xpg4/Makefile
↓ open down ↓ 62 lines elided ↑ open up ↑
  63   63          $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  64   64          $(POST_PROCESS)
  65   65  
  66   66  $(POFILE): $(POFILES)
  67   67          $(RM) $@
  68   68          cat $(POFILES) > $@
  69   69  #
  70   70  
  71   71  install: all $(ROOTXPG4PROG)
  72   72  
  73      -values-xpg4.o: ../../lib/common/common/values-xpg4.c
  74      -        $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
       73 +values-xpg4.o: ../../lib/crt/common/values-xpg4.c
       74 +        $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c
  75   75  
  76   76  clean:
  77   77          $(RM) $(OBJS) $(XPG4) $(CLEANFILES)
  78   78  
  79   79  lint: lint_SRCS
  80   80  
  81   81  awk.c + y.tab.h: awk.y
  82   82  
  83   83  awk.o: awk.c y.tab.h
  84   84  
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX