Chapter 4. objcopy
-change-addresses
-adjust-vma
incr
Change the VMA and LMA addresses of all sections, as well as the start address, by adding
. Some object file formats do not permit section addresses to be changed arbitrarily. Note
incr
that this does not relocate the sections; if the program expects sections to be loaded at a certain
address, and this option is used to change the sections such that they are loaded at a different
address, the program may fail.
-change-section-address
-adjust-section-vma
Set or change both the VMA address and the LMA address of the named
the section address is set to
address. See the comments under
the input file, a warning will be issued, unless
-change-section-lma
Set or change the LMA address of the named
the section will be loaded into memory at program load time. Normally this is the same as the
VMA address, which is the address of the section at program run time, but on some systems,
especially those where a program is held in ROM, the two can be different. If
section address is set to
See the comments under
file, a warning will be issued, unless
-change-section-vma
Set or change the VMA address of the named
the section will be located once the program has started executing. Normally this is the same as
the LMA address, which is the address where the section will be loaded into memory, but on
some systems, especially those where a program is held in ROM, the two can be different. If
used, the section address is set to
address. See the comments under
the input file, a warning will be issued, unless
-change-warnings
-adjust-warnings
If
-change-section-address
used, and the named section does not exist, issue a warning. This is the default.
-no-change-warnings
-no-adjust-warnings
Do not issue a warning if
-adjust-section-vma
-set-section-flags
Set the flags for the named section. The
names. The recognized names are
,
, and
rom
share
tents, but it is not meaningful to clear the
just remove the section instead. Not all flags are meaningful for all object file formats.
incr
{=,+,-}
section
{=,+,-}
section
. Otherwise,
val
-change-addresses
{=,+,-}
section
. Otherwise,
val
-change-addresses
-no-change-warnings
{=,+,-}
section
. Otherwise,
val
-change-addresses
or
-change-section-lma
-change-section-address
is used, even if the named section does not exist.
=
section
flags
alloc
. You can set the
debug
val
val
is added to or subtracted from the section
val
, above. If
-no-change-warnings
val
. The LMA address is the address where
section
is added to or subtracted from the section address.
val
, above. If
section
val
. The VMA address is the address where
section
is added to or subtracted from the section
val
, above. If
-no-change-warnings
argument is a comma separated string of flag
flags
,
,
,
contents
load
flag for a section which does not have con-
contents
flag of a section which does have contents-
contents
section
does not exist in
section
is used.
=
does not exist in the input
is used.
does not exist in
section
is used.
or
-change-section-vma
or
-adjust-section-lma
,
,
noload
readonly
17
. If
is used,
=
is used, the
is
=
is
or
,
,
code
data
Need help?
Do you have a question about the ENTERPRISE LINUX 4 - USING BINUTILS and is the answer not in the manual?
Questions and answers