set-section-flags of objcopy
Thanks, Wolfgang. I looked up the man page for "objcopy". But the explanation is far more enough than what I need. So I am trying to find other sources. I check the site you gave me too. But it seems that some of the flags don't appear in the list, such as "alloc", "load", "rom" etc.
I will try to find some other sites. If any of you happen to know any sites explaining the set-section-flag of objcopy, please let me know. I would appreciate your help!
Thanks,
Frank
Quoted 6 lines
From: Wolfgang Denk <[email protected]>
To: "Frank Young" <[email protected]>
CC: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] set-section-flags of objcopy Date: Mon, 21 Jun 2004 20:11:42 +0200
Quoted 7 lines
Quoted 2 lines · In message <[email protected]> you wrote:
Can anybody tell me where I can find the meaning of every single flag
which
Quoted 2 lines
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:
Quoted 16 lines
--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 arealloc',contents',load',noload',readonly',code',data',rom',share', anddebug'. You can set thecontents' flag for a section which does not have contents, but it is not meaningful to clear thecontents' 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
Quoted 8 lines
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de I am an atheist, thank God!
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar ? get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/