From ede76260a7201121e1dbed3a14e280bd3aa8c459 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 13 Nov 2008 10:57:00 +0000 Subject: * nm.c (filter_symbols): Only call memcpy when from != to. --- binutils/nm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binutils/nm.c') diff --git a/binutils/nm.c b/binutils/nm.c index 1dbf47e..e11568a 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -449,7 +449,8 @@ filter_symbols (bfd *abfd, bfd_boolean dynamic, void *minisyms, if (keep) { - memcpy (to, from, size); + if (to != from) + memcpy (to, from, size); to += size; } } -- cgit v1.1