objcopy: Factor out some of the option parsing code.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 20 Feb 2015 20:12:56 +0000 (20:12 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 25 Feb 2015 23:57:30 +0000 (23:57 +0000)
commit7173b38a442c007a554ea200817a0eadce89c87b
treeb3dabb8799b34967b4e5964746c3e932c2bece16
parentbac13f5a4c05ed88d7c4639c37ad01bb7e305419
objcopy: Factor out some of the option parsing code.

This patch splits out some of the option parsing code, increasing code
reuse.

binutils/ChangeLog:

* objcopy.c (init_section_add): New function.
(section_add_load_file): New function.
(copy_main): Make use of new functions.
binutils/ChangeLog
binutils/objcopy.c