On Sun, Oct 26, 2008 at 10:09:51PM +0800, Peter Teoh wrote:
> yes, GOT is mentioned here:
> 
> http://www.itee.uq.edu.au/~emmerik/elf.html
> 
> But as I objdump the "vmlinux" I cannot find any ".got", but I can
> find in binaries like /bin/ls.   why?

From: arch/arm/kernel/vmlinux.lds.S:

 .text : {                       /* Real text segment            */
                _text = .;              /* Text and read-only data      */
                        __exception_text_start = .;
                        *(.exception.text)
                        __exception_text_end = .;
                        TEXT_TEXT
                        SCHED_TEXT
                        LOCK_TEXT
                        KPROBES_TEXT
#ifdef CONFIG_MMU
                        *(.fixup)
#endif
                        *(.gnu.warning)
                        *(.rodata)
                        *(.rodata.*)
                        *(.glue_7)
                        *(.glue_7t)
                *(.got)                 /* Global offset table          */
        }

So .got is included in .text in the final vmlinux.

        Sam

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to