* nm.c (filter_symbols): Only call memcpy when from != to.
This commit is contained in:
parent
c31ad2a1f7
commit
ede76260a7
@ -1,3 +1,8 @@
|
||||
2008-11-13 Hans-Peter Nilsson <hp@axis.com>
|
||||
Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* nm.c (filter_symbols): Only call memcpy when from != to.
|
||||
|
||||
2008-11-10 Tristan Gingold <gingold@adacore.com>
|
||||
Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user