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/cron/Makefile
          +++ new/usr/src/cmd/cron/Makefile
↓ open down ↓ 173 lines elided ↑ open up ↑
 174  174  
 175  175  objs.xpg6:
 176  176          -@mkdir -p $@
 177  177  
 178  178  objs.xpg4/%.o:          %.c
 179  179          $(COMPILE.c) -o $@ $<
 180  180  
 181  181  objs.xpg4:
 182  182          -@mkdir -p $@
 183  183  
 184      -objs.xpg4/values-xpg4.o:        ../../lib/common/common/values-xpg4.c
 185      -        $(COMPILE.c) -o $@ ../../lib/common/common/values-xpg4.c
      184 +objs.xpg4/values-xpg4.o:        ../../lib/crt/common/values-xpg4.c
      185 +        $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c
 186  186  
 187  187  %.o:                    $(SRC)/common/util/%.c
 188  188          $(COMPILE.c) $(OUTPUT_OPTION) $<
 189  189          $(POST_PROCESS_O)
 190  190  
 191  191  objs.xpg4/%.o:  $(SRC)/common/util/%.c
 192  192          $(COMPILE.c) -o $@ $<
 193  193          $(POST_PROCESS_O)
 194  194  
 195  195  objs.xpg6/%.o:  $(SRC)/common/util/%.c
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX