1*1e49577aSRod Evans# 2*1e49577aSRod Evans# CDDL HEADER START 3*1e49577aSRod Evans# 4*1e49577aSRod Evans# The contents of this file are subject to the terms of the 5*1e49577aSRod Evans# Common Development and Distribution License (the "License"). 6*1e49577aSRod Evans# You may not use this file except in compliance with the License. 7*1e49577aSRod Evans# 8*1e49577aSRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1e49577aSRod Evans# or http://www.opensolaris.org/os/licensing. 10*1e49577aSRod Evans# See the License for the specific language governing permissions 11*1e49577aSRod Evans# and limitations under the License. 12*1e49577aSRod Evans# 13*1e49577aSRod Evans# When distributing Covered Code, include this CDDL HEADER in each 14*1e49577aSRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1e49577aSRod Evans# If applicable, add the following below this CDDL HEADER, with the 16*1e49577aSRod Evans# fields enclosed by brackets "[]" replaced with your own identifying 17*1e49577aSRod Evans# information: Portions Copyright [yyyy] [name of copyright owner] 18*1e49577aSRod Evans# 19*1e49577aSRod Evans# CDDL HEADER END 20*1e49577aSRod Evans# 21*1e49577aSRod Evans 22*1e49577aSRod Evans# 23*1e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*1e49577aSRod Evans# 25*1e49577aSRod Evans 26*1e49577aSRod EvansTRG_PLATFORM = sun4u 27*1e49577aSRod EvansGEN_PLATFORM = sun4u 28*1e49577aSRod Evans 29*1e49577aSRod Evansinclude ../../Makefile.com 30*1e49577aSRod Evans 31*1e49577aSRod EvansOBJECTS = memcpy.o memset.o memcmp.o 32*1e49577aSRod Evans 33*1e49577aSRod Evansinclude $(SRC)/lib/Makefile.lib 34*1e49577aSRod Evans 35*1e49577aSRod EvansIFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \ 36*1e49577aSRod Evans -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include 37*1e49577aSRod Evans 38*1e49577aSRod EvansAS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) 39*1e49577aSRod EvansASFLAGS = -P -K pic 40*1e49577aSRod Evans 41*1e49577aSRod Evans# memcpy.s provides __align_cpy_1 as an alias for memcpy. However, this isn't 42*1e49577aSRod Evans# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with 43*1e49577aSRod Evans# the same address is compromised. The result is .SUNW_dynsymsort: duplicate 44*1e49577aSRod Evans# symbol errors from check_rtime. Use elfedit to assign a weak binding. 45*1e49577aSRod Evans 46*1e49577aSRod EvansPOST_PROCESS_OBJCAP_O = elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@ 47