]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r307808: elfcopy: select mode by the end of the program name
authoremaste <emaste@FreeBSD.org>
Wed, 3 May 2017 02:25:11 +0000 (02:25 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 3 May 2017 02:25:11 +0000 (02:25 +0000)
commit8455ba0f9806cbf0f1f72a15f9bca48855bfb775
treef5d340da3d548dec29d733975a830307c7f55fba
parent4d40019791ca3c1c38a469e82d1c36d6e74ac917
MFC r307808: elfcopy: select mode by the end of the program name

The mode of operation (elfcopy, mcs, or strip) is chosen based on the
program name.  Broaden this to allow a substring match at the end of the
name to allow prefixes - for example, bsdstrip or aarch64-freebsd-strip.

This improves use of these tools as drop-in replacements for GNU objcopy
and strip, which are often built with a limited set of supported targets
and installed with a target prefix for cross tools.
contrib/elftoolchain/elfcopy/main.c