Hi all,
to add new section to my binary, I changed
arch/arm/kernel/vmlinux.lds.S similar to this :
       _edata_loc = __data_loc + SIZEOF(.data);

       .mysection (NOLOAD) : {
                __mysection_start = .;  /* MYSECTION                            
*/
                KEEP(*(.mysection))
                __mysection_end = .;
        }

        .bss : {
                __bss_start = .;        /* BSS                          */
                *(.bss)
                *(COMMON)
                _end = .;
        }

inserting my new section just above .bss.

I can see that generated arch/arm/kernel/vmlinux.lds contains this new
section, which should be a good thing.

However, generated linux binary do not contain this section. Was it
stripped behind the linkers back somewhere during the build process,
or it was ever inserted into some linker script (i.e. I am looking at
wrong LD scripts, which is not very probable.

1) What is the bast way to insert new sections to our binary ? Is it
the one by changing rch/arm/kernel/vmlinux.lds.S (but this obviously
do not work) ?
2) Is adding of the new sections documented somewhere ? Is stripping
of the newly added sections documented somewhere ?
3) What is the purpose of
linux/arch/arm/boot/compressed/vmlinux.lds.in file and when is it used
?

Best regards,
Drasko
_______________________________________________
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