[PATCH] D25766: [ELF] - Implemented --section-ordering-file option.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 04:44:32 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael, davide.
grimar added subscribers: grimar, llvm-commits, evgeny777.

Gold has support for following option:

--section-ordering-file FILENAME

  Layout sections in the order specified.

It uses ordering file to layout input sections in the given order.

Original gold commit:
https://sourceware.org/ml/binutils/2010-06/txt00000.txt

Usings in the wild I found:
https://glandium.org/blog/?p=2467
https://reviews.facebook.net/D22713

Patch does not adds support for combination of linkerscript and such file yet,
that probably for another patch, I am working on it.


https://reviews.llvm.org/D25766

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/Options.td
  ELF/OutputSections.cpp
  ELF/OutputSections.h
  ELF/SymbolListFile.cpp
  ELF/SymbolListFile.h
  ELF/Writer.cpp
  test/ELF/section-ordering-file.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25766.75128.patch
Type: text/x-patch
Size: 8194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161019/fbf37173/attachment.bin>


More information about the llvm-commits mailing list