Deleted Added
full compact
elfcopy.1 (292120) elfcopy.1 (295577)
1.\" Copyright (c) 2008-2009,2011 Joseph Koshy. All rights reserved.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 7 unchanged lines hidden (view full) ---

16.\" for any direct, indirect, incidental, special, exemplary, or consequential
17.\" damages (including, but not limited to, procurement of substitute goods
18.\" or services; loss of use, data, or profits; or business interruption)
19.\" however caused and on any theory of liability, whether in contract, strict
20.\" liability, or tort (including negligence or otherwise) arising in any way
21.\" out of the use of this software, even if advised of the possibility of
22.\" such damage.
23.\"
1.\" Copyright (c) 2008-2009,2011 Joseph Koshy. All rights reserved.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 7 unchanged lines hidden (view full) ---

16.\" for any direct, indirect, incidental, special, exemplary, or consequential
17.\" damages (including, but not limited to, procurement of substitute goods
18.\" or services; loss of use, data, or profits; or business interruption)
19.\" however caused and on any theory of liability, whether in contract, strict
20.\" liability, or tort (including negligence or otherwise) arising in any way
21.\" out of the use of this software, even if advised of the possibility of
22.\" such damage.
23.\"
24.\" $Id: elfcopy.1 3266 2015-12-07 15:38:26Z emaste $
24.\" $Id: elfcopy.1 3381 2016-01-30 19:39:47Z jkoshy $
25.\"
25.\"
26.Dd December 7, 2015
26.Dd January 29, 2016
27.Os
28.Dt ELFCOPY 1
29.Sh NAME
27.Os
28.Dt ELFCOPY 1
29.Sh NAME
30.Nm elfcopy
30.Nm elfcopy ,
31.Nm objcopy
31.Nd copy and translate object files
32.Sh SYNOPSIS
33.Nm
34.Op Fl I Ar objformat | Fl s Ar objformat | Fl -input-target= Ns Ar objformat
35.Op Fl K Ar symbolname | Fl -keep-symbol= Ns Ar symbolname
36.Op Fl L Ar symbolname | Fl -localize-symbol= Ns Ar symbolname
37.Op Fl N Ar symbolname | Fl -strip-symbol= Ns Ar symbolname
38.Op Fl O Ar objformat | Fl -output-target= Ns Ar objformat

--- 41 unchanged lines hidden (view full) ---

80.Op Fl -srec-len Ns = Ns Ar val
81.Op Fl -strip-dwo
82.Op Fl -strip-unneeded
83.Ar infile
84.Op Ar outfile
85.Sh DESCRIPTION
86The
87.Nm
32.Nd copy and translate object files
33.Sh SYNOPSIS
34.Nm
35.Op Fl I Ar objformat | Fl s Ar objformat | Fl -input-target= Ns Ar objformat
36.Op Fl K Ar symbolname | Fl -keep-symbol= Ns Ar symbolname
37.Op Fl L Ar symbolname | Fl -localize-symbol= Ns Ar symbolname
38.Op Fl N Ar symbolname | Fl -strip-symbol= Ns Ar symbolname
39.Op Fl O Ar objformat | Fl -output-target= Ns Ar objformat

--- 41 unchanged lines hidden (view full) ---

81.Op Fl -srec-len Ns = Ns Ar val
82.Op Fl -strip-dwo
83.Op Fl -strip-unneeded
84.Ar infile
85.Op Ar outfile
86.Sh DESCRIPTION
87The
88.Nm
88utility copies the content of the ELF object named by argument
89utility copies the content of the binary object named by argument
89.Ar infile
90to that named by argument
91.Ar outfile ,
92transforming it according to the command line options specified.
93If argument
94.Ar outfile
95is not specified,
96.Nm

--- 19 unchanged lines hidden (view full) ---

116local to the output file.
117.It Fl N Ar symbol | Fl -strip-symbol= Ns Ar symbolname
118Do not copy the symbol named by argument
119.Ar symbolname
120to the output.
121.It Fl O Ar objformat | Fl -output-target= Ns Ar objformat
122Write the output file using the object format specified in argument
123.Ar objformat .
90.Ar infile
91to that named by argument
92.Ar outfile ,
93transforming it according to the command line options specified.
94If argument
95.Ar outfile
96is not specified,
97.Nm

--- 19 unchanged lines hidden (view full) ---

117local to the output file.
118.It Fl N Ar symbol | Fl -strip-symbol= Ns Ar symbolname
119Do not copy the symbol named by argument
120.Ar symbolname
121to the output.
122.It Fl O Ar objformat | Fl -output-target= Ns Ar objformat
123Write the output file using the object format specified in argument
124.Ar objformat .
125The argument
126.Ar objformat
127should be one of the target names recognized by
128.Xr elftc_bfd_find_target 3 .
124.It Fl R Ar sectionname | Fl -remove-section= Ns Ar sectionname
125Remove any section with name
126.Ar sectionname
127from the output file.
128.It Fl S | Fl -strip-all
129Do not copy symbol and relocation information to the target file.
130.It Fl V | Fl -version
131Print a version identifier and exit.

--- 193 unchanged lines hidden (view full) ---

325.Sh DIAGNOSTICS
326.Ex -std
327.Sh SEE ALSO
328.Xr ar 1 ,
329.Xr ld 1 ,
330.Xr mcs 1 ,
331.Xr strip 1 ,
332.Xr elf 3 ,
129.It Fl R Ar sectionname | Fl -remove-section= Ns Ar sectionname
130Remove any section with name
131.Ar sectionname
132from the output file.
133.It Fl S | Fl -strip-all
134Do not copy symbol and relocation information to the target file.
135.It Fl V | Fl -version
136Print a version identifier and exit.

--- 193 unchanged lines hidden (view full) ---

330.Sh DIAGNOSTICS
331.Ex -std
332.Sh SEE ALSO
333.Xr ar 1 ,
334.Xr ld 1 ,
335.Xr mcs 1 ,
336.Xr strip 1 ,
337.Xr elf 3 ,
338.Xr elftc_bfd_find_target 3 ,
333.Xr ar 5 ,
334.Xr elf 5
339.Xr ar 5 ,
340.Xr elf 5
341.Sh COMPATIBILITY
342The
343.Nm
344utility is expected to be option compatible with GNU
345.Nm objcopy .
335.Sh HISTORY
336.Nm
337has been implemented by
338.An Kai Wang Aq Mt kaiwang27@users.sourceforge.net .
346.Sh HISTORY
347.Nm
348has been implemented by
349.An Kai Wang Aq Mt kaiwang27@users.sourceforge.net .