Jivin Mike Frysinger lays it down ...
> On Thursday, December 16, 2010 16:56:56 David McCullough wrote:
> > > On Wednesday, December 15, 2010 20:40:14 David McCullough wrote:
> > > > I thought that if it's not needed in the flat file,  perhaps you should
> > > > have put it lower in the ld script like the .debug sections etc,  that
> > > > way it will not get pushed into the text/data of the flat executable
> > > > but should still be in the elf file for debugging etc ?
> > > 
> > > i tried that originally, but kept getting linker errors.  i think it's
> > > because the section has the alloc (A) flag on it since on ELF systems,
> > > it does get loaded and possibly checked at runtime.  to get the FLAT
> > > file to discard it, i
> > 
> > Ok.
> > 
> > > think we'd have to be a little more tricky ?  perhaps create a new
> > > program header named "discard" and have the elf2flt utility always
> > > ignore the last program header ?
> > 
> > If you are happy with it where it is then I won't complain ;-)
> 
> i would love to get it discarded from the FLAT file, but i cant think of any 
> simple answers.  if you have better ideas, we can take a look ...

Pretty sure you tried this one:


Index: elf2flt.ld.in
===================================================================
RCS file: /var/cvs/elf2flt/elf2flt.ld.in,v
retrieving revision 1.5
diff -u -1 -r1.5 elf2flt.ld.in
--- elf2flt.ld.in       16 Dec 2010 01:37:41 -0000      1.5
+++ elf2flt.ld.in       16 Dec 2010 23:52:42 -0000
@@ -138,3 +138,2 @@
 
-       .note.ABI-tag : { *(.note.ABI-tag) } > flatmem
        .eh_frame_hdr : { *(.eh_frame_hdr) } > flatmem
@@ -209,2 +208,3 @@
        .debug_varnames  0 : { *(.debug_varnames) }
+       .note.ABI-tag 0 : { *(.note.ABI-tag) }
 }


Another option may be to leave it out,  then add a .note.ABI-tag using
objcopy as part of the ld-elf2flt processing.  Bit of a hack I know,  but
gets it out of the flatfile,  also gives you control over what goes into the
.note.ABI-tag in terms of kernel versions etc.

Actually,  that probably won't work as you said linker errors.  How about
using a copy of the XYZ.elf file in ld-elf2flt that has the .note.ABI-tag
removed ?

Cheers,
Davidm

-- 
David McCullough,      david_mccullo...@mcafee.com,  Ph:+61 734352815
McAfee - SnapGear      http://www.mcafee.com         http://www.uCdot.org
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to