[PATCH] [Commented On] D24795: [ELF] Linkerscript: Try to put section to the last PT_LOAD, in case there is no exact segment specification

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 13:23:28 PDT 2016


bfd seems a bit more simplistic when PHDRS is used. As far as I can
tell it just keeps a list of "open" program headers and assign an
output section to all of them without asking any questions

Given

PHDRS { foo PT_LOAD FLAGS (1); }
PHDRS { bar PT_TLS; }
SECTIONS
{
  .text : { *(.text)  } : foo : bar
  .tdata : { *(.tdata)  }
  .rodata : { *(.rodata)  }
}

I get just one LOAD and one TLS, both covering the same addresses, the
LOAD is RO, the TLS is RWE.

Cheers,
Rafael


On 30 September 2016 at 04:34, Eugene Leviant <evgeny.leviant at gmail.com> wrote:
> evgeny777 added a comment.
>
> Ping
>
>
> https://reviews.llvm.org/D24795
>
>
>


More information about the llvm-commits mailing list