This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: crossgcc: arbitrary sections?


In crossgcc "Robert J. Brown" <rj@eli.elilabs.com> writes:

>So what is the method?  Do gnu ld linker scripts allow you to identify 
>a chunk of object code by the module name (name of .o file) together
>with the names of the sections that are present in that file, so that
>you could take the data section of foo.o and put it one place, but put 
>the data section of bar.o in another place, yet let the text sections
>of both coallesce into a single code space?

Yes.

>I have used some pretty hairy linker scripts in embedded work before,
>but using other proprietary linkers, not gnu ld.  I have not read the
>info docs on ld yet, so I am just wondering.  Plese do not lob an RTFM 
>grenade my way for asking this question.  :-)

Well, you don't want me to say RTFM, but it does seem the right way to
answer that question.

Ian