[PATCH] D51027: [LLD][ELD] - Do not reject INFO output section type when used with a start address.

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 01:58:20 PDT 2018


bd1976llvm added a comment.

Thanks for the detailed reply Peter!

I am certainly convinced that these features are not deprecated if they feature in examples in your documentation. Also, as you point out, how can you otherwise control the output section properties for entirely artificial output sections (well apart from either binary editing after linking, or creating an empty section with the correct properties in the inputs and assigning it to the output section).

Do you have a better source of documentation for these linker script features than the gnu docs. I find the gnu docs difficult, for example the gnu docs state for NOLOAD that: "the section should be marked as not loadable, so that it will not be loaded into memory when the program is run". Which I find difficult to interpret in in terms of ELF and leaves me required to read the source code to understand what NOLOAD does!


https://reviews.llvm.org/D51027





More information about the llvm-commits mailing list