17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5f841f6adSraf# Common Development and Distribution License (the "License"). 6f841f6adSraf# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 211e49577aSRod Evans 227c478bd9Sstevel@tonic-gate# 231e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 261e49577aSRod EvansTRG_PLATFORM = sun4u 271e49577aSRod EvansGEN_PLATFORM = sun4u 287c478bd9Sstevel@tonic-gate 291e49577aSRod Evansinclude ../../Makefile.com 307c478bd9Sstevel@tonic-gate 311e49577aSRod EvansOBJECTS = memcpy.o memset.o memcmp.o 327c478bd9Sstevel@tonic-gate 331e49577aSRod Evansinclude $(SRC)/lib/Makefile.lib 347c478bd9Sstevel@tonic-gate 351e49577aSRod EvansIFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \ 361e49577aSRod Evans -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include 377c478bd9Sstevel@tonic-gate 381e49577aSRod EvansAS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) 39*5d9d9091SRichard LoweASFLAGS = $(AS_PICFLAGS) 407c478bd9Sstevel@tonic-gate 411e49577aSRod Evans# memcpy.s provides __align_cpy_1 as an alias for memcpy. However, this isn't 421e49577aSRod Evans# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with 431e49577aSRod Evans# the same address is compromised. The result is .SUNW_dynsymsort: duplicate 441e49577aSRod Evans# symbol errors from check_rtime. Use elfedit to assign a weak binding. 457c478bd9Sstevel@tonic-gate 461e49577aSRod EvansPOST_PROCESS_OBJCAP_O = elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@ 47