Print this page
10367 ld(1) tests should be a real test suite
10368 want an ld(1) regression test for i386 LD tls transition (10267)
*** 9,37 ****
# http://www.illumos.org/license/CDDL.
#
# Copyright 2012, Richard Lowe.
! include $(SRC)/Makefile.master
!
! # We have to use GCC, and only GCC. The best way is to ask cw(1) which GCC to use.
! CC_CMD = $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc -_compiler
! CC = $(CC_CMD:sh)
CFLAGS = -O1 -m64
! LINK.c = env LD_ALTEXEC=$(PROTO)/usr/bin/amd64/ld $(CC) $(CFLAGS) -o $@ $^
! COMPILE.c = $(CC) $(CFLAGS) -c -o $@ $^
COMPILE.s = $(CC) $(CFLAGS) -c -o $@ $^
.KEEP_STATE:
install default: all
! .c.o:
! $(COMPILE.c)
!
! .s.o:
$(COMPILE.s)
# A basic use of TLS that uses the movq m/r --> movq i/r variant
PROGS += style2
STYLE2OBJS = style2.o
--- 9,29 ----
# http://www.illumos.org/license/CDDL.
#
# Copyright 2012, Richard Lowe.
! CC = gcc
CFLAGS = -O1 -m64
! LINK.c = $(CC) $(CFLAGS) -o $@ $^
COMPILE.s = $(CC) $(CFLAGS) -c -o $@ $^
.KEEP_STATE:
install default: all
! %.o: $(TESTDIR)/%.s
$(COMPILE.s)
# A basic use of TLS that uses the movq m/r --> movq i/r variant
PROGS += style2
STYLE2OBJS = style2.o