[PATCH] D22961: [ELF] - Linkerscript: restrict moving location counter backwards.

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 8 05:30:38 PDT 2016


emaste added a comment.

> Problem here that BSD script is not full, there are orphan sections. gold and ld use heuristic to place orphan sections

>  somewhere in the middle. LLD does not do that and we produce broken output here:


We'll want to address this in FreeBSD's linker script in general so that we don't have the orphan sections. I agree that a warning/error would be desirable here to aid in identifying and correcting these cases. I'm not sure off hand how to handle the __start_<section> symbol generation when including these sections in the linker script though.


https://reviews.llvm.org/D22961





More information about the llvm-commits mailing list