]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libelftc: Micro-optimize string table insertion.
authormarkj <markj@FreeBSD.org>
Wed, 26 Jun 2019 16:30:14 +0000 (16:30 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 26 Jun 2019 16:30:14 +0000 (16:30 +0000)
commitc98f0e0b9b27b7bb5d260afdeb6da9f984ec7df4
tree3865a2b9c403635cd2349c0276d7f1baac23e2e5
parent944c67f6c1309173070332db0a91e60d25d02dea
libelftc: Micro-optimize string table insertion.

The string's length is already known, so use memcpy() instead of
strcpy() to add it to the string table image.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20760
contrib/elftoolchain/libelftc/elftc_string_table.c