[lld] r277165 - [ELF] - Linkerscript: implemented SIZEOF(section)

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 04:36:46 PDT 2016


>What happens for something like:

>
>```
>SECTIONS {
>  .aaa : {
>    *(.aaa);
>    . = . + SIZEOF(.aaa);
>  }
>}
>```
>
>Can you add a test case? (or modify the existing one)?

This will not work. Assignments to dot in an output section is PR28720.
I think it should be implemented after landing something like D22683.

This patch implements only global assignments, using full size of
created output section.

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160801/0bb22068/attachment.html>


More information about the llvm-commits mailing list