From: Frank Young Date: Mon, 21 Jun 2004 15:03:38 -0400 Subject: [U-Boot-Users] set-section-flags of objcopy Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >From: Wolfgang Denk >To: "Frank Young" >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 > >In message 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 > >-- >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/