Re: question about vmlinux.lds.in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Sat, Oct 25, 2008 at 10:02 PM, loody <miloody@xxxxxxxxx> 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?

In short, GOT  (global offset table) holds the address of external
functions (functions on external libraries). You can read more about
it in my article here:
http://www.linuxforums.org/misc/understanding_elf_using_readelf_and_objdump.html

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux