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


 248 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.c
 249         $(COMPILE.c) -o $@ $<
 250         $(POST_PROCESS_O)
 251 
 252 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.s
 253         $(BUILD.s)
 254         $(POST_PROCESS_O)
 255 
 256 pics/%.o: $(LIBCBASE)/../port/unwind/%.c
 257         $(COMPILE.c) -o $@ $<
 258         $(POST_PROCESS_O)
 259 
 260 pics/%.o: $(LIBCBASE)/../$(MACH)/unwind/%.s
 261         $(BUILD.s)
 262         $(POST_PROCESS_O)
 263 
 264 pics/%.o: $(LIBCBASE)/../port/sys/%.c
 265         $(COMPILE.c) -o $@ $<
 266         $(POST_PROCESS_O)
 267 
 268 pics/%.o: $(LIBCBASE)/../../common/common/%.c
 269         $(COMPILE.c) -o $@ $<
 270         $(POST_PROCESS_O)
 271 
 272 pics/%.o: $(LIBCBASE)/$(CRTSRCS)/%.s
 273         $(BUILD.s)
 274         $(POST_PROCESS_O)
 275 
 276 # $(SRC)/common rules
 277 pics/%.o: $(SRC)/common/atomic/$(TARGETMACH)/%.s
 278         $(BUILD.s)
 279         $(POST_PROCESS_O)
 280 
 281 $(COMOBJS:%=pics/%): $(SRC)/common/util/$$(@F:.o=.c)
 282         $(COMPILE.c) -o $@ $(SRC)/common/util/$(@F:.o=.c)
 283         $(POST_PROCESS_O)
 284 
 285 $(XATTROBJS:%=pics/%): $(SRC)/common/xattr/$$(@F:.o=.c)
 286         $(COMPILE.c) -o $@ $(SRC)/common/xattr/$(@F:.o=.c)
 287         $(POST_PROCESS_O)
 288 




 248 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.c
 249         $(COMPILE.c) -o $@ $<
 250         $(POST_PROCESS_O)
 251 
 252 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/unwind/%.s
 253         $(BUILD.s)
 254         $(POST_PROCESS_O)
 255 
 256 pics/%.o: $(LIBCBASE)/../port/unwind/%.c
 257         $(COMPILE.c) -o $@ $<
 258         $(POST_PROCESS_O)
 259 
 260 pics/%.o: $(LIBCBASE)/../$(MACH)/unwind/%.s
 261         $(BUILD.s)
 262         $(POST_PROCESS_O)
 263 
 264 pics/%.o: $(LIBCBASE)/../port/sys/%.c
 265         $(COMPILE.c) -o $@ $<
 266         $(POST_PROCESS_O)
 267 
 268 pics/%.o: $(LIBCBASE)/../../crt/common/%.c
 269         $(COMPILE.c) -o $@ $<
 270         $(POST_PROCESS_O)
 271 
 272 pics/%.o: $(LIBCBASE)/$(CRTSRCS)/%.s
 273         $(BUILD.s)
 274         $(POST_PROCESS_O)
 275 
 276 # $(SRC)/common rules
 277 pics/%.o: $(SRC)/common/atomic/$(TARGETMACH)/%.s
 278         $(BUILD.s)
 279         $(POST_PROCESS_O)
 280 
 281 $(COMOBJS:%=pics/%): $(SRC)/common/util/$$(@F:.o=.c)
 282         $(COMPILE.c) -o $@ $(SRC)/common/util/$(@F:.o=.c)
 283         $(POST_PROCESS_O)
 284 
 285 $(XATTROBJS:%=pics/%): $(SRC)/common/xattr/$$(@F:.o=.c)
 286         $(COMPILE.c) -o $@ $(SRC)/common/xattr/$(@F:.o=.c)
 287         $(POST_PROCESS_O)
 288