Re: VMA

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

 



On Thu, 31 Oct 2002 18:16:57 -0800 (PST)
kernel_learner <kernel_learner@yahoo.com> wrote:
> Also could someone please explain the concepts of
> segments (BSS, Data, Text etc.)? 

Text segments hold executable code. Usually they are mapped read-only,
executable. Read-only, constant data goes to these segments too.

Data segments hold initialized data. They are mapped read/write.

BSS segments hold uninitialized data. They are also mapped
read/write.  The difference to data segments is that they do not
take space in object file.

Of course, "text", "rodata", "data", "bss" are the traditional names,
in an ELF file, for instance, these names have absolutely no meaning,
instead the segment header table specifies the address where to load
segments and the permissions to associate with them.

You can play with "readelf -l" to see the segments layout of actual
programs.

~velco
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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