GOT stands for global object table. I *think* it is generated by
compiler for PIC code and needs to be filled out during loading
time (i.e., during run-time linking time).
For FLAT format executables, the loader is inside kernel. Check
fs/binfmt_flat.c file. I believe somewhere there it is creating
the GOT section and filling proper contents into the table.
Cheers.
Jun
On Sat, Oct 25, 2008 at 11:00:26PM +0800, loody wrote:
> Dear all:
> I find there is a section in vmlinux.lds defined as below:
> _got_start = .;
> .got : { *(.got) }
> _got_end = .;
> .got.plt : { *(.got.plt) }
> .data : { *(.data) }
> _edata = .;
>
> As far as I know, this file is used to generate vmlinux.lds and ld
> will use it to combine compressed kernel, proper head.s, by different
> cpu, and misc.c to zImage.
>
> so I think the .got sections will be defined in obj codes in this
> folder, compressed.
> But I cannot get any information about got, could someone tell me
> where it is and what it is used for?
>
> appreciate your help,
> miloody
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev