[PATCH] D58381: [mips] Put some MIPS-specific sections to separate segments

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 03:19:25 PST 2019


atanasyan created this revision.
atanasyan added reviewers: ruiu, grimar.
atanasyan added a project: lld.
Herald added subscribers: MaskRay, jrtc27, kristof.beyls, arichardson, javed.absar, sdardis, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

Three MIPS-specific sections `.reginfo`, `.MIPS.options`, and `.MIPS.abiflags` are used by loader to read their contents and setup environment for running a program. Loader looks up these data in the corresponding segments: `PT_MIPS_REGINFO`, `PT_MIPS_OPTIONS`, and `PT_MIPS_ABIFLAGS` respectively.

This patch put these sections to separate segments like we do already for ARM `SHT_ARM_EXIDX` section.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D58381

Files:
  lld/ELF/Writer.cpp
  lld/test/ELF/basic-mips.s
  lld/test/ELF/eh-frame-hdr-abs-fde.s
  lld/test/ELF/mips-got-string.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58381.187338.patch
Type: text/x-patch
Size: 7048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/14603e2d/attachment.bin>


More information about the llvm-commits mailing list