public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Comments requested for proposed for ld scripting language extension
@ 2011-04-28 16:48 Catherine Moore
  2011-04-29  0:24 ` Alan Modra
  2011-04-29  7:35 ` Tristan Gingold
  0 siblings, 2 replies; 6+ messages in thread
From: Catherine Moore @ 2011-04-28 16:48 UTC (permalink / raw)
  To: binutils, Catherine Moore

I've been working on a binutils port to the Freescale VLE part, more 
specifically, on interlinking.  For those not familiar with the 
requirements, interlinking is a bit different than for other ports such 
as ARM and MIPS.  There are no special call instructions or mode 
switches.  BookE and VLE instructions can be intermixed as long as they 
reside in separate ELF sections.  The VLE instruction sections are 
marked with a PowerPC-specific section header (SHF_PPC_VLE).

Because we have so many "specially named" sections .gnu.linkonce, .text, 
.init, and friends, I want to avoid a scheme that relies on a naming 
convention to differentiate between VLE sections and BookE sections. 
What I would like to do is add an extension to the scripting language. 
Something like this:

MEMORY
{
   ram (rwx) : ORIGIN = 0x100000, LENGTH = 144M
}

SECTIONS
{
   .text : WITHOUT_FLAGS (SHF_PPC_VLE)
   {
     *(.text .text.* .gnu.linkonce.t.*)
   } >ram
   .text_vle : WITH_FLAGS (SHF_PPC_VLE)
   {
     *(.text .text.* .gnu.linkonce.t.*)
   } >ram
}

map_input_to_output_sections would then walk the input sections for 
those sections with an optional "FLAG" marker.  A callback would be 
introduced that would examine the ELF header flags for the input 
sections and gather only those that met the criteria.

I realize that this is an ELF-centric proposal.  Although it could be 
extended to include other object formats, I haven't given that aspect 
alot of thought.

Before I spend time on development, I'd like to solicit comments ahead 
of time.  How do the maintainers and others feel about this plan?

Thanks,
Catherine

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-03 14:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-28 16:48 Comments requested for proposed for ld scripting language extension Catherine Moore
2011-04-29  0:24 ` Alan Modra
2011-04-29  7:35 ` Tristan Gingold
2011-05-03  8:44   ` Richard Sandiford
2011-05-03  8:52     ` Tristan Gingold
2011-05-03 14:35     ` Catherine Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).