[PATCH] D20378: [lld] Wrong section VMA/LMA in case of using linker scripts

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 08:56:01 PDT 2016


ruiu added a comment.

We cannot say if this is a bug because the linker script has no spec, but it may be considered as a bug. So the thing here is that if the user instructs the linker to create an output section from input sections with various types of attributes (executable, writable, etc.), what the linker should do. GNU linker seems to create a single section anyways. We are currently creating multiple sections, binned by section attributes. It seems that GNU's behavior makes more sense.

I'm okay with this patch since the previous behavior was more buggy than this, though.


Repository:
  rL LLVM

http://reviews.llvm.org/D20378





More information about the llvm-commits mailing list