Jivin Mike Frysinger lays it down ... > The .note.ABI-tag section exists to indicate to other projects (like gdb > or library loaders) information about the target OS. It doesn't actually > contain anything that is used at runtime. So while the current linker > script gathers this into the .data section, the final FLAT doesn't include > anything from it. But tools expect to find a dedicated section in ELFs > which the current section merge prevents. > > So give .note.ABI-tag its own output section so gdb can locate and use it. > This shouldn't change the FLAT files produced in any way. > > Signed-off-by: Mike Frysinger <vap...@gentoo.org> > --- > elf2flt.ld.in | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/elf2flt.ld.in b/elf2flt.ld.in > index 6871ae9..c7e01a6 100644 > --- a/elf2flt.ld.in > +++ b/elf2flt.ld.in > @@ -81,7 +81,6 @@ R_RODAT *(.gnu.linkonce.r*) > *(__libc_atexit) > *(__libc_subinit) > *(__libc_subfreeres) > - *(.note.ABI-tag) > > /* microblaze-specific read-only small data area > and associated locating symbols */ > @@ -137,6 +136,7 @@ TOR: @symbol_pre...@__dtor_end__ = .; > PROVIDE (@symbol_pre...@__fini_array_end = .); > } > flatmem :data > > + .note.ABI-tag : { *(.note.ABI-tag) } > flatmem > .eh_frame_hdr : { *(.eh_frame_hdr) } > flatmem > .eh_frame : { KEEP(*(.eh_frame)) } > flatmem > .gcc_except_table : {
Applied. 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 ? 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