Chapter 4. objcopy 17
-change-addresses incr
-adjust-vma incr
Change the VMA and LMA addresses of all sections, as well as the start address, by adding
incr. Some object file formats do not permit section addresses to be changed arbitrarily. Note
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 section{=,+,-}val
-adjust-section-vma section{=,+,-}val
Set or change both the VMA address and the LMA address of the named section. If = is used,
the section address is set to val. Otherwise, val is added to or subtracted from the section
address. See the comments under -change-addresses, above. If section does not exist in
the input file, a warning will be issued, unless -no-change-warnings is used.
-change-section-lma section{=,+,-}val
Set or change the LMA address of the named section. The LMA address is the address where
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 = is used, the
section address is set to val. Otherwise, val is added to or subtracted from the section address.
See the comments under -change-addresses, above. If section does not exist in the input
file, a warning will be issued, unless -no-change-warnings is used.
-change-section-vma section{=,+,-}val
Set or change the VMA address of the named section. The VMA address is the address where
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 = is
used, the section address is set to val. Otherwise, val is added to or subtracted from the section
address. See the comments under -change-addresses, above. If section does not exist in
the input file, a warning will be issued, unless -no-change-warnings is used.
-change-warnings
-adjust-warnings
If -change-section-address or -change-section-lma or -change-section-vma is
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 -change-section-address or -adjust-section-lma or
-adjust-section-vma is used, even if the named section does not exist.
-set-section-flags section=flags
Set the flags for the named section. The flags argument is a comma separated string of flag
names. The recognized names are alloc, contents, load, noload, readonly, code, data,
rom, share, and debug. You can set the contents flag for a section which does not have con-
tents, but it is not meaningful to clear the contents flag of a section which does have contents-
just remove the section instead. Not all flags are meaningful for all object file formats.
Kommentare zu diesen Handbüchern