Print this page
XXX Remove nawk(1)
*** 21,32 ****
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
- # ident "%Z%%M% %I% %E% SMI"
- #
include $(SRC)/Makefile.master
FILES= \
$(MACH)_cc_map.noexeglobs \
--- 21,30 ----
*** 96,109 ****
# global.
%map.noexeglobs:main.c $(TEMPLATE1) $(TEMPLATE2)
$(LINK) -o $(MAIN1) -M$(TEMPLATE1) main.c
$(ELFDUMP) -s -N.dynsym $(MAIN1) | $(EGREP) "WEAK|GLOB" | \
! $(GREP) -v UNDEF | $(NAWK) '{print $$9 }' | $(SORT) > $(SYMS1)
$(LINK) -o $(MAIN2) -M$(TEMPLATE2) main.c
$(ELFDUMP) -s -N.dynsym $(MAIN2) | $(EGREP) "WEAK|GLOB" | \
! $(GREP) -v UNDEF | $(NAWK) '{print $$9 }' | $(SORT) > $(SYMS2)
$(ECHO) "# GENERATED FILE - DO NOT EDIT" > $@
$(GREP) MAP-HEAD $(TEMPLATE2) | \
$(SED) -e "s/ *# MAP-HEAD//" >> $@
$(DIFF) $(SYMS1) $(SYMS2) | $(GREP) "^<" | \
$(SED) -e "s/^< \(.*\)/ \1;/" >> $@
--- 94,107 ----
# global.
%map.noexeglobs:main.c $(TEMPLATE1) $(TEMPLATE2)
$(LINK) -o $(MAIN1) -M$(TEMPLATE1) main.c
$(ELFDUMP) -s -N.dynsym $(MAIN1) | $(EGREP) "WEAK|GLOB" | \
! $(GREP) -v UNDEF | $(AWK) '{print $$9 }' | $(SORT) > $(SYMS1)
$(LINK) -o $(MAIN2) -M$(TEMPLATE2) main.c
$(ELFDUMP) -s -N.dynsym $(MAIN2) | $(EGREP) "WEAK|GLOB" | \
! $(GREP) -v UNDEF | $(AWK) '{print $$9 }' | $(SORT) > $(SYMS2)
$(ECHO) "# GENERATED FILE - DO NOT EDIT" > $@
$(GREP) MAP-HEAD $(TEMPLATE2) | \
$(SED) -e "s/ *# MAP-HEAD//" >> $@
$(DIFF) $(SYMS1) $(SYMS2) | $(GREP) "^<" | \
$(SED) -e "s/^< \(.*\)/ \1;/" >> $@