[PATCH] D14450: [ELF2] Add mandatory .dynamic section entries on MIPS.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 09:00:24 PST 2015


ikudrin created this revision.
ikudrin added reviewers: atanasyan, ruiu, rafael.
ikudrin added a subscriber: llvm-commits.
ikudrin added a project: lld.

The MIPS target requires specific dynamic section entries to be defined.
* DT_MIPS_RLD_VERSION and DT_MIPS_FLAGS store predefined values.
* DT_MIPS_BASE_ADDRESS holds base VA.
* DT_MIPS_LOCAL_GOTNO holds the number of local GOT entries.
* DT_MIPS_SYMTABNO holds the number of .dynsym entries.
* DT_MIPS_GOTSYM holds the index of the .dynsym entry which corresponds to the first entry of global part of GOT.
* DT_MIPS_RLD_MAP holds the address to the reserved space in the data segment
* DT_PLTGOT holds the address of the GOT section.

See "Dynamic Section" in Chapter 5 in the following document for detailed information:
ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf

http://reviews.llvm.org/D14450

Files:
  ELF/OutputSections.cpp
  ELF/OutputSections.h
  ELF/Target.cpp
  ELF/Target.h
  ELF/Writer.cpp
  test/elf2/Inputs/mips-dynamic.s
  test/elf2/mips-dynamic.s
  test/elf2/mips-got-relocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14450.39543.patch
Type: text/x-patch
Size: 12578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151106/96831aaf/attachment.bin>


More information about the llvm-commits mailing list