[PATCH] D22683: [ELF] Symbol assignment within input section list
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 29 09:38:09 PDT 2016
On 29 July 2016 at 12:21, Eugene Leviant <evgeny.leviant at gmail.com> wrote:
> evgeny777 added a comment.
>
> Interesting idea, but it doesn't sound any easier to me. You'll likely maintain list of symbols instead of list of SymbolInputSection<ELFT>.
Correct. As you parse there will be a list of pending symbols. Once
you see a input section or the and of the output section they get
attached to it.
> Also will it work in this case:
>
> .foo {
> *(.foo)
> end_foo = .;
> . = ALIGN(0x1000);
> }
No :-(
Yes, in general a symbol assignment can have a . assignment on each
side, so a synthetic section looks like the correct solution.
Taking another look.
Cheers,
Rafael
More information about the llvm-commits
mailing list