Print this page
9884 cw(1) should use -fpic rather than -Kpic

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/rtld/sparcv9/Makefile
          +++ new/usr/src/cmd/sgs/rtld/sparcv9/Makefile
↓ open down ↓ 32 lines elided ↑ open up ↑
  33   33                  remove.o        move.o          tls.o           cap.o
  34   34  
  35   35  S_COMOBJS=      debug.o         audit.o         object.o
  36   36  
  37   37  G_MACHOBJS=     doreloc.o
  38   38  
  39   39  P_MACHOBJS=     sparc_elf.o     _setup.o
  40   40  
  41   41  CP_MACHOBJS=    common_sparc.o
  42   42  
  43      -S_MACHOBJS=     
       43 +S_MACHOBJS=
  44   44  
  45   45  P_ASOBJS=       boot.o          boot_elf.o      caller.o
  46   46  
  47      -S_ASOBJS=       
       47 +S_ASOBJS=
  48   48  
  49   49  CRTSRCS=        ../../../../lib/crt/sparc
  50   50  CRTI=           pics/crti.o
  51   51  CRTN=           pics/crtn.o
  52   52  CRTS=           $(CRTI)         $(CRTN)
  53   53  
  54   54  CHKSRCS=        $(SRCBASE)/uts/common/krtld/reloc.h
  55   55  
  56   56  BASEPLAT =      sparc
  57   57  
↓ open down ↓ 3 lines elided ↑ open up ↑
  61   61  MAPFILE-ORDER =         ../common/mapfile-order-devpro
  62   62  $(__GNUC64)MAPFILE-ORDER =      ../common/mapfile-order-gcc
  63   63  
  64   64  include         $(SRC)/cmd/sgs/rtld/Makefile.com
  65   65  include         $(SRC)/lib/Makefile.lib.64
  66   66  
  67   67  # Add any machine specific flags.
  68   68  
  69   69  CPPFLAGS +=     -I../../../../uts/sparc/krtld
  70   70  CFLAGS +=       -xregs=no%appl
  71      -ASFLAGS +=      -s -K pic -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
       71 +ASFLAGS +=      -s $(AS_PICFLAGS) -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
  72   72  ADBGENFLAGS +=  -mlp64
  73   73  ADBGENCFLAGS += -erroff=%all
  74   74  ADBSUB=         $(ADBSUB64)
  75   75  CPPFLAGS +=     -D_ELF64
  76   76  LINTFLAGS64 +=  $(VAR_LINTFLAGS64)
  77   77  SONAME=         /lib/sparcv9/ld.so.1
  78   78  
  79   79  SGSMSGTARG +=   $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
  80   80  
  81   81  LDLIB =         -L ../../libld/$(MACH64)
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX