This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mkmap-flatsysv.awk [PATCH RFA]


	* Makefile.in (SHLIB_NM_FLAGS): New.
	(libgcc.mk): Pass it.
	* mklibgcc.in (libgcc.map): Use it.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.525
diff -c -p -r1.525 Makefile.in
*** Makefile.in	2000/10/18 21:33:41	1.525
--- Makefile.in	2000/10/21 01:15:25
*************** LIBGCC2_INCLUDES =
*** 381,392 ****
  # Additional target-dependent options for compiling libgcc2.a.
  TARGET_LIBGCC2_CFLAGS =
  
! # Addition sources to handle exceptions; overridden by some targets.
  LIB2ADDEH = $(srcdir)/frame-dwarf2.c
  
  # libgcc1-test target (must also be overridable for a target)
  LIBGCC1_TEST = libgcc1-test
  
  # List of extra executables that should be compiled for this target machine
  # that are used for compiling from source code to object code.
  # The rules for compiling them should be in the t-* file for the machine.
--- 381,395 ----
  # Additional target-dependent options for compiling libgcc2.a.
  TARGET_LIBGCC2_CFLAGS =
  
! # Additional sources to handle exceptions; overridden by some targets.
  LIB2ADDEH = $(srcdir)/frame-dwarf2.c
  
  # libgcc1-test target (must also be overridable for a target)
  LIBGCC1_TEST = libgcc1-test
  
+ # nm flags to list global symbols in libgcc object files.
+ SHLIB_NM_FLAGS = -pg
+ 
  # List of extra executables that should be compiled for this target machine
  # that are used for compiling from source code to object code.
  # The rules for compiling them should be in the t-* file for the machine.
*************** libgcc.mk: config.status Makefile mklibg
*** 985,990 ****
--- 988,994 ----
  	SHLIB_MULTILIB='$(SHLIB_MULTILIB)' \
  	SHLIB_MKMAP='$(SHLIB_MKMAP)' \
  	SHLIB_MAPFILES='$(SHLIB_MAPFILES)' \
+ 	SHLIB_NM_FLAGS='$(SHLIB_NM_FLAGS)' \
  	  $(SHELL) mklibgcc > tmp-libgcc.mk
  	mv tmp-libgcc.mk libgcc.mk
  
Index: mklibgcc.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/mklibgcc.in,v
retrieving revision 1.20
diff -c -p -r1.20 mklibgcc.in
*** mklibgcc.in	2000/10/09 21:13:04	1.20
--- mklibgcc.in	2000/10/21 01:15:25
***************
*** 28,33 ****
--- 28,34 ----
  # SHLIB_MULTILIB
  # SHLIB_MKMAP
  # SHLIB_MAPFILES
+ # SHLIB_NM_FLAGS
  
  # Make needs VPATH to be literal.
  echo 'srcdir = @srcdir@'
*************** for ml in $MULTILIBS; do
*** 262,268 ****
      mapfile="libgcc.map"
      echo ""
      echo "${mapfile}: $SHLIB_MKMAP $SHLIB_MAPFILES $libgcc_objs"
!     echo '	{ $(NM_FOR_TARGET) -pg'" $libgcc_objs; echo %%; cat $SHLIB_MAPFILES; } | "'$(AWK)'" -f $SHLIB_MKMAP > "'tmp-$@'
      echo '	mv tmp-$@ $@'
    fi
    shlib_deps="$shlib_deps $mapfile"
--- 263,269 ----
      mapfile="libgcc.map"
      echo ""
      echo "${mapfile}: $SHLIB_MKMAP $SHLIB_MAPFILES $libgcc_objs"
!     echo '	{ $(NM_FOR_TARGET)'" $SHLIB_NM_FLAGS $libgcc_objs; echo %%; cat $SHLIB_MAPFILES; } | "'$(AWK)'" -f $SHLIB_MKMAP > "'tmp-$@'
      echo '	mv tmp-$@ $@'
    fi
    shlib_deps="$shlib_deps $mapfile"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]