This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: confused about symbol version table


2010/7/23 Alan Modra <amodra@gmail.com>:
> .dynsym doesn't contain Elf32_External_Dyn structs. ?It contains
> Elf32_External_Sym structs.

But I find some descriptions in the ELF Specification, as following
-------------------------------------------------------------------------------------------------
* SHT_DYNAMIC

  The section holds information for dynamic linking. Currently, an
  object file may have only one dynamic section, but this restriction
  may be relaxed in the future. See ``Dynamic Section'' in Part 2 for
  details.

Dynamic Section

If an object file participates in dynamic linking, its program header
table will have an element of type PT_DYNAMIC. This ``segment''
contains the .dynamic section. A special symbol, _DYNAMIC, labels the
section, which contains an array of the following structures.

+ Figure 2-9: Dynamic Structure

  typedef struct {
      Elf32_Sword d_tag;
      union {
          Elf32_Sword	d_val;
          Elf32_Addr	d_ptr;
      } d_un;
  } Elf32_Dyn;
-------------------------------------------------------------------------------------------------

Do these descriptions not mean a dynamic section contains an array of
ELF32_Dyn entries?

---
PRC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]