[PATCH] D38170: [ELF] - Drop SHF_LINK_ORDER flag from output.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 03:33:14 PDT 2017


grimar created this revision.
Herald added subscribers: javed.absar, emaste.

As was discussed in https://reviews.llvm.org/D37736 thread, we can drop SHF_LINK_ORDER
and do that early enough, so that this flag will not affect on
flags of sections that contains only symbol assignments and created in
`adjustSectionsBeforeSorting()`.

It also looks there is no reason to keep this flag when doing final link. 
this patch preserves it only when -r is given.


https://reviews.llvm.org/D38170

Files:
  ELF/Driver.cpp
  ELF/ICF.cpp
  ELF/InputSection.cpp
  ELF/InputSection.h
  ELF/MarkLive.cpp
  ELF/OutputSections.cpp
  ELF/SyntheticSections.cpp
  test/ELF/arm-exidx-canunwind.s
  test/ELF/arm-exidx-link.s
  test/ELF/arm-exidx-order.s
  test/ELF/arm-exidx-output.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38170.116322.patch
Type: text/x-patch
Size: 9186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170922/145e7285/attachment.bin>


More information about the llvm-commits mailing list