[PATCH] D23716: [ELF] Linkerscript: allow adding start/end symbols to arbitrary section

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 08:50:42 PDT 2016


ruiu added a comment.

This patch seems a bit tricky because it handles symbols at start or end of sections command specially. For example, it works as expected if a command is

  .eh_frame_hdr { _foo = .; *(.eh_frame_hdr); _bar = .; }

but doesn't if

  .eh_frame_hdr { _foo = .; *(.eh_frame_hdr); _bar1 = .; bar2 = .; }

I can see why you needed to do this (because special output sections are not a list of output sections), but I'm wondering if there's a better way than the way you implemented in this patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D23716





More information about the llvm-commits mailing list