[PATCH] D48247: lld: add experimental support for SHT_RELR sections.

Rahul Chaudhry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 15 16:16:11 PDT 2018


rahulchaudhry created this revision.
rahulchaudhry added a reviewer: pcc.
Herald added subscribers: llvm-commits, mgrang, arichardson, emaste, srhines.
Herald added a reviewer: espindola.

This change adds experimental support for SHT_RELR sections, proposed
here: https://groups.google.com/forum/#!topic/generic-abi/bX460iggiKg

Pass '--pack-dyn-relocs=relr' to enable generation of SHT_RELR section
and DT_RELR, DT_RELRSZ, and DT_RELRENT dynamic tags.

Definitions for the new ELF section type and dynamic array tags, as well
as the encoding used in the new section are all under discussion and are
subject to change. Use with caution!

'--pack-dyn-relocs=android-relr' is similar, but uses SHT_ANDROID_RELR
section type instead of SHT_RELR, as well as DT_ANDROID_RELR* dynamic
tags instead of DT_RELR*. The generated section contents are identical.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48247

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/LinkerScript.cpp
  ELF/Options.td
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  ELF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48247.151582.patch
Type: text/x-patch
Size: 12104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180615/db037976/attachment.bin>


More information about the llvm-commits mailing list