
Hi,
Can anybody tell me where I can find the meaning of every single flag which is used in set-section-flags of objcopy? i.e. what are the meaning of "alloc", "load", "readonly", "code", "data", and "rom"?
Thanks a lot!
Frank
_________________________________________________________________ MSN 9 Dial-up Internet Access fights spam and pop-ups now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/

In message BAY2-F154Jg04FeCEZK0007927a@hotmail.com you wrote:
Can anybody tell me where I can find the meaning of every single flag which is used in set-section-flags of objcopy? i.e. what are the meaning of "alloc", "load", "readonly", "code", "data", and "rom"?
From the objcopy documentation:
--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 contents, 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.
Since we build ELF files by default, you can look these up in any documentation about the ELF file format.
See for example http://www.cs.ucdavis.edu/~haungs/paper/node14.html
Best regards,
Wolfgang Denk
participants (2)
-
Frank Young
-
Wolfgang Denk